This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/71853] [6/7 regression] ICE on an ill-formed case statement in c_do_switch_warnings
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jul 2016 17:35:27 +0000
- Subject: [Bug c/71853] [6/7 regression] ICE on an ill-formed case statement in c_do_switch_warnings
- Auto-submitted: auto-generated
- References: <bug-71853-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71853
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Jul 29 17:34:55 2016
New Revision: 238884
URL: https://gcc.gnu.org/viewcvs?rev=238884&root=gcc&view=rev
Log:
PR c/71853
* c-parser.c (c_parser_switch_statement): Initialize ce.original_type
to error node for invalid code.
* gcc.dg/noncompile/pr71853.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/noncompile/pr71853.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/testsuite/ChangeLog