This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35446] [4.2/4.3/4.4 regression] ICE with invalid array initializer
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2009 13:00:57 -0000
- Subject: [Bug c/35446] [4.2/4.3/4.4 regression] ICE with invalid array initializer
- References: <bug-35446-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jsm28 at gcc dot gnu dot org 2009-02-17 13:00 -------
Subject: Bug 35446
Author: jsm28
Date: Tue Feb 17 13:00:40 2009
New Revision: 144227
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144227
Log:
PR c/35446
* c-parser.c (c_parser_braced_init): Call pop_init_level when
skipping until next close brace.
testsuite:
* gcc.dg/noncompile/init-5.c: New test.
* gcc.dg/init-bad-4.c: Adjust expected errors.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/noncompile/init-5.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/c-parser.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/init-bad-4.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35446