Commit 8646f3df by Roger Sayle Committed by Roger Sayle

re PR middle-end/27428 (ICE with goto in erroneous code)


	PR middle-end/27428
	* c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
	to indicate the cpplib has issued an error message for us.

	* gcc.dg/pr27428-1.c: New test case.

From-SVN: r115080
parent f8c2645c
2006-06-29 Roger Sayle <roger@eyesopen.com>
PR middle-end/27428
* c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
to indicate the cpplib has issued an error message for us.
2006-06-29 Asher Langton <langton2@llnl.gov>
PR target/25765
......
......@@ -364,6 +364,7 @@ c_lex_with_flags (tree *value, location_t *loc, unsigned char *cpp_flags)
case CPP_N_INVALID:
/* cpplib has issued an error. */
*value = error_mark_node;
errorcount++;
break;
case CPP_N_INTEGER:
......
2006-06-29 Roger Sayle <roger@eyesopen.com>
PR middle-end/27428
* gcc.dg/pr27428-1.c: New test case.
2006-06-29 Mike Stump <mrs@apple.com>
* gcc.dg/compat/struct-layout-1_generate.c: Don't use common
/* { dg-do compile } */
/* { dg-options "-O2" } */
void foo()
{
goto L;
if (0..) { L: ; } // { dg-error "too many decimal points" }
}
Markdown is supported
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