This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/54355] ICE on invalid code in switch statement
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Aug 2012 21:45:28 +0000
- Subject: [Bug c/54355] ICE on invalid code in switch statement
- Auto-submitted: auto-generated
- References: <bug-54355-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54355
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-24 21:45:28 UTC ---
Author: jakub
Date: Fri Aug 24 21:45:22 2012
New Revision: 190656
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190656
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr54355.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/testsuite/ChangeLog