diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-13 00:14:59 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-13 00:14:59 +0000 |
commit | e915f66446959e7c99fd67461a54a84585471640 (patch) | |
tree | 4bfd2ec87798546ab7a146b54285f39e03ce62eb /gcc/c-lex.c | |
parent | 04ea944577d1b7de61cd3f3dcdfa1cdfec398916 (diff) | |
download | ppe42-gcc-e915f66446959e7c99fd67461a54a84585471640.tar.gz ppe42-gcc-e915f66446959e7c99fd67461a54a84585471640.zip |
PR c++/9264
* c-lex.c (c_lex): Set the token value to error_mark_node for
invalid numeric constants.
PR c++/9264
* g++.dg/parse/octal1.C: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61235 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 a689ccab004..ab068207e1d 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -712,6 +712,7 @@ c_lex (value) { case CPP_N_INVALID: /* cpplib has issued an error. */ + *value = error_mark_node; break; case CPP_N_INTEGER: |