Commit a5382f1c by Richard Biener Committed by Richard Biener

re PR middle-end/77842 (genmatch segfault on a missing brace)

2016-10-05  Richard Biener  <rguenther@suse.de>

	PR middle-end/77842
	* genmatch.c (parser::parse_c_expr): Handle premature EOF.

From-SVN: r240774
parent f9018d75
2016-10-05 Richard Biener <rguenther@suse.de>
PR middle-end/77842
* genmatch.c (parser::parse_c_expr): Handle premature EOF.
2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
* dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
......
......@@ -4124,6 +4124,8 @@ parser::parse_c_expr (cpp_ttype start)
else if (token->type == end
&& --opencnt == 0)
break;
else if (token->type == CPP_EOF)
fatal_at (token, "unexpected end of file");
/* This is a lame way of counting the number of statements. */
if (token->type == CPP_SEMICOLON)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment