re PR c/35446 (ICE with invalid array initializer)
authorJoseph Myers <joseph@codesourcery.com>
Mon, 16 Feb 2009 22:55:56 +0000 (22:55 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 16 Feb 2009 22:55:56 +0000 (22:55 +0000)
commita47e20fd934a9dd9b392de5325a9d7f6a0d6acda
treeead750183f414452b82a0ca13a1347344d4a8b69
parent50aab7dc401b3b6cc0f74982231eb529ef06ebe1
re PR c/35446 (ICE with invalid array initializer)

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.

From-SVN: r144216
gcc/ChangeLog
gcc/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/init-bad-4.c
gcc/testsuite/gcc.dg/noncompile/init-5.c [new file with mode: 0644]