On 07/27/2016 03:50 PM, Marek Polacek wrote:
This testcase was breaking because we were using uninitialized memory
coming from c_expr in c_parser_switch_statement. There, in case we hadn't
seen '(' after switch, we called c_finish_case with uninitialized CE.
Fixed thus.
Bootstrapped/regtested on x86_64-linux, ok for trunk?
2016-07-27 Marek Polacek <pola...@redhat.com>
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.
OK.
jeff