Skip to content
Snippets Groups Projects
Commit 414fe08a authored by Richard Biener's avatar Richard Biener
Browse files

c/100522 - avoid invalid GIMPLE in GIMPLE parsing

This plugs a few easy holes avoiding ICEs down the route.

2021-05-18  Richard Biener  <rguenther@suse.de>

	PR c/100522
gcc/c/
	* gimple-parser.c (c_parser_gimple_postfix_expression_after_primary):
	Diagnose calls to non-functions.
	(c_parser_gimple_statement): Diagnose unexpected assignment RHS.

gcc/testsuite/
	* gcc.dg/gimplefe-error-10.c: New testcase.
parent 4054472b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment