diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-06-29 21:57:23 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-06-29 21:57:23 +0000 |
commit | 8646f3df36e16529fb4400584b79dbcd94a03768 (patch) | |
tree | 3230a4cd9e54440adfdcd4b66a146f05d4a1aa38 /gcc/c-lex.c | |
parent | f8c2645c2d21a86b81a2480e3ab18b8cea2bceee (diff) | |
download | gcc-8646f3df36e16529fb4400584b79dbcd94a03768.zip gcc-8646f3df36e16529fb4400584b79dbcd94a03768.tar.gz gcc-8646f3df36e16529fb4400584b79dbcd94a03768.tar.bz2 |
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
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index ce231dd..108bc5c 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -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: |