Skip to content
Snippets Groups Projects
Commit d1edc393 authored by Joseph Myers's avatar Joseph Myers Committed by Joseph Myers
Browse files

re PR c/20672 (New C parser doesn't check whether functions that end files are closed properly)

	PR c/20672
	* c-parser.c (c_parser_compound_statement_nostart): Give error
	message for EOF instead of just setting parser->error.

testsuite:
	* gcc.dg/pr20672-1.c: New test.

From-SVN: r97197
parent 0fd20f36
No related branches found
No related tags found
No related merge requests found
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