re PR c++/54441 (Infinite loop with brace initializer on zero-length array)
authorJason Merrill <jason@redhat.com>
Wed, 5 Sep 2012 04:17:12 +0000 (00:17 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 5 Sep 2012 04:17:12 +0000 (00:17 -0400)
commitfaddc0d7c2d9647a4e2fa897743442dd71180d88
tree36dc2af022600dcf76a8c66d9d71bf136af723ba
parent5a706c322d07f1c834b4120fd98d943b806b4228
re PR c++/54441 (Infinite loop with brace initializer on zero-length array)

PR c++/54441
* decl.c (reshape_init_class): Handle invalid initializer for
0-length array member.

* error.c (dump_type_suffix): Correct handling of 0-length arrays.

From-SVN: r190962
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/flexary3.C [new file with mode: 0644]