[Bug c++/54441] [4.7/4.8 Regression] Infinite loop with brace initializer on zero-length array
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 5 04:17:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54441
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-05 04:17:19 UTC ---
Author: jason
Date: Wed Sep 5 04:17:12 2012
New Revision: 190962
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190962
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/ext/flexary3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/error.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list