Commit 10ef8f28 authored by Marek Polacek's avatar Marek Polacek Committed by Marek Polacek
Browse files

re PR preprocessor/60570 (expression in 'elif' directive mis-diagnosed as...

re PR preprocessor/60570 (expression in 'elif' directive mis-diagnosed as error when group will be skipped)

	DR#412
	PR preprocessor/60570
	* directives.c (do_elif): Don't evaluate #elif conditionals
	when they don't need to be.

	* gcc.dg/cpp/pr36320.c: Turn dg-error into dg-bogus.
	* gcc.dg/cpp/pr60570.c: New test.

From-SVN: r220035
parent b0edd457
Supports Markdown
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