diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-16 22:55:56 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-16 22:55:56 +0000 |
commit | 1646bf33fc44a6aa108f87fc903835203a6f70a7 (patch) | |
tree | ead750183f414452b82a0ca13a1347344d4a8b69 /gcc/c-parser.c | |
parent | 0fb2a9980fb514705fca77f06309793b76c7e917 (diff) | |
download | gcc-1646bf33fc44a6aa108f87fc903835203a6f70a7.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144216 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index e09c2c17161..9aef031a8eb 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -3036,6 +3036,7 @@ c_parser_braced_init (c_parser *parser, tree type, bool nested_p) ret.value = error_mark_node; ret.original_code = ERROR_MARK; c_parser_skip_until_found (parser, CPP_CLOSE_BRACE, "expected %<}%>"); + pop_init_level (0); return ret; } c_parser_consume_token (parser); |