re PR c++/87148 (backward compatibility issue to take char [] as incomplete type)
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 Mar 2019 18:46:32 +0000 (19:46 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 6 Mar 2019 18:46:32 +0000 (19:46 +0100)
commit71b6cb2bbccba8922a8c7e9082a13a02dee7e57d
tree0ab09c800fdc1e4086296c067ed4ccf46b89414c
parent4556c5b3157f496c73f7fcd25d103ad3e6ff1874
re PR c++/87148 (backward compatibility issue  to take char [] as incomplete type)

PR c++/87148
* init.c (build_value_init_noctor): Ignore flexible array members.

* g++.dg/ext/flexary34.C: New test.

From-SVN: r269434
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/flexary34.C [new file with mode: 0644]