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

re PR c/39613 (gcc 20090331 produces an error at mce64.c in kernel 2.6.29)

	PR c/39613
	* c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
	it and pedwarn if this results in an INTEGER_CST.

testsuite:
	* gcc.dg/case-const-1.c, gcc.dg/case-const-2.c,
	gcc.dg/case-const-3.c: New tests.

From-SVN: r145793
parent 74a6dc82
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