re PR c/54355 (ICE on invalid code in switch statement)
commit6265d07ce0d8cdbfba7d3057804441d1a14f5b73
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 Aug 2012 21:45:22 +0000 (24 23:45 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 Aug 2012 21:45:22 +0000 (24 23:45 +0200)
treeca151ea097c3c8d5eb187f89f14f8a63c937ffca
parent12fdc0990f54eb02eb6a762fcf7982b8ca9eab4a
re PR c/54355 (ICE on invalid code in switch statement)

PR c/54355
* c-decl.c (c_parser_label): Pass true as nested and fix up comments
for nested and empty_ok arguments in the call to
c_parser_declaration_or_fndef.

* gcc.dg/pr54355.c: New test.

From-SVN: r190656
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr54355.c [new file with mode: 0644]