re PR c++/72775 (internal compiler error: in finish_expr_stmt, at cp/semantics.c...
authorMarek Polacek <polacek@redhat.com>
Wed, 14 Dec 2016 20:41:43 +0000 (20:41 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 14 Dec 2016 20:41:43 +0000 (20:41 +0000)
commit964b79eb330d5df3e851696e2d0bfa30b0e0307b
treef6f66a11d2a821e98fa7c953cadb8f50678c0dff
parentcc99421ec4b3b94aa328175635782f6f5c36f9e9
re PR c++/72775 (internal compiler error: in finish_expr_stmt, at cp/semantics.c:677)

PR c++/72775
* init.c (perform_member_init): Diagnose member initializer for
flexible array member.

* g++.dg/ext/flexary12.C: Adjust dg-error.
* g++.dg/ext/flexary20.C: New.
* g++.dg/ext/flexary21.C: New.

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