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

re PR c/456 (constant expressions constraints (gcc.dg/c90-const-expr-1))

	PR c/456
	* cppexp.c (num_binary_op): Don't allow comma operators in #if
	constant expressions at all outside C99 mode if pedantic.

testsuite:
	* gcc.dg/cpp/c90-if-comma-1.c, gcc.dg/cpp/c99-if-comma-1.c:
	New tests.

From-SVN: r77676
parent 3b8e0c91
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