diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-29 21:57:23 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-29 21:57:23 +0000 |
commit | 7a8c1294204689a8b0aa3719a0d6dc421465f11c (patch) | |
tree | 3230a4cd9e54440adfdcd4b66a146f05d4a1aa38 /gcc/c-lex.c | |
parent | 6c6fd1087265ccfc2a3f87a956b83012cad3f2a1 (diff) | |
download | gcc-7a8c1294204689a8b0aa3719a0d6dc421465f11c.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115080 138bc75d-0d04-0410-961f-82ee72b054a4
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 ce231ddc4bc..108bc5cff17 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: |