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

c/100625 - avoid building invalid labels in the GIMPLE FE

When duplicate labes are diagnosed, avoid building a GIMPLE_LABEL.

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

	PR c/100625
gcc/c/
	* gimple-parser.c (c_parser_gimple_label): Avoid building
	a GIMPLE label with NULL label decl.

gcc/testsuite/
	* gcc.dg/gimplefe-error-9.c: New testcase.
parent 47abe2ab
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