aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-01-13 00:14:59 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-01-13 00:14:59 +0000
commite8f2b18d0ec4fc04cba5d9ea60350645247c6548 (patch)
tree4bfd2ec87798546ab7a146b54285f39e03ce62eb /gcc/c-lex.c
parent70f8b89fd9ff69e2b399042d5b15cd367c970c67 (diff)
downloadgcc-e8f2b18d0ec4fc04cba5d9ea60350645247c6548.zip
gcc-e8f2b18d0ec4fc04cba5d9ea60350645247c6548.tar.gz
gcc-e8f2b18d0ec4fc04cba5d9ea60350645247c6548.tar.bz2
re PR c++/9264 ([parser] ICE on invalid octal constant)
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. From-SVN: r61235
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index a689ccab..ab06820 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: