re PR c/71853 (ICE on an ill-formed case statement in c_do_switch_warnings)
authorMarek Polacek <polacek@redhat.com>
Fri, 29 Jul 2016 17:34:55 +0000 (17:34 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 29 Jul 2016 17:34:55 +0000 (17:34 +0000)
commitefd0786f218626c25adde976a9f83121b0c45342
treec21b60865d58f3c7e38d33b70ce2af3168245099
parentf618a47208b4cf40ac7567e7b7fc9aeefeecc207
re PR c/71853 (ICE on an ill-formed case statement in c_do_switch_warnings)

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.

From-SVN: r238884
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/pr71853.c [new file with mode: 0644]