PR c++/79363 - ICE with NSDMI and array
authorMartin Sebor <msebor@redhat.com>
Wed, 15 Feb 2017 20:28:32 +0000 (20:28 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 15 Feb 2017 20:28:32 +0000 (13:28 -0700)
commit945c17d8c1fd5e2299fb17becac9b35ec45db3e6
tree52131b88d2ff4908aacdbff0f1b0da777996ad69
parent8daddba8be98919c11a14d5afa8489f9b9bbd801
PR c++/79363 - ICE with NSDMI and array

gcc/cp/ChangeLog:

PR c++/79363
* init.c (maybe_reject_flexarray_init): New function.
(perform_member_init): Call it.

gcc/testsuite/ChangeLog:

PR c++/79363
* g++.dg/ext/flexary12.C: Adjust.
* g++.dg/ext/flexary20.C: Same.
* g++.dg/ext/flexary21.C: Same.
* g++.dg/ext/flexary22.C: New test.

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