PR c++/93753 - ICE on a flexible array followed by a member in an anonymous struct...
authorMartin Sebor <msebor@redhat.com>
Fri, 21 Feb 2020 17:45:56 +0000 (10:45 -0700)
committerMartin Sebor <msebor@redhat.com>
Fri, 21 Feb 2020 17:45:56 +0000 (10:45 -0700)
commitdbfba41e95d1d93b17e907b7f516b52ed3a3c415
tree93af137ea1444ac1f140c538a9ed78a673edc692
parent9e58988061f4175896de11af0caf9bdd48c9b046
PR c++/93753 - ICE on a flexible array followed by a member in an anonymous struct with an initializer

gcc/cp/ChangeLog:

PR gcov-profile/93753
* class.c (check_flexarrays): Tighten up a test for potential members
of anonymous structs or unions.

gcc/testsuite/ChangeLog:

PR gcov-profile/93753
* g++.dg/ext/flexary36.C: New test.
* g++.dg/lto/pr93166_0.C: Make struct with flexarray valid.
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/flexary36.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr93166_0.C