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
This commit is contained in:
parent
70f8b89fd9
commit
e8f2b18d0e
@ -1,3 +1,9 @@
|
||||
2003-01-12 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/9264
|
||||
* c-lex.c (c_lex): Set the token value to error_mark_node for
|
||||
invalid numeric constants.
|
||||
|
||||
2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* c-pch.c (asm_file_startpos): Change to `long'.
|
||||
|
@ -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:
|
||||
|
@ -1,3 +1,11 @@
|
||||
2003-01-12 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/9264
|
||||
* g++.dg/parse/octal1.C: New file.
|
||||
|
||||
PR c++/9172
|
||||
* g++.dg/parse/typename1.C: New file.
|
||||
|
||||
2003-01-10 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* gcc.dg/bf-ms-layout.c: Enable for cygwin and mingw32 targets.
|
||||
|
1
gcc/testsuite/g++.dg/parse/octal1.C
Normal file
1
gcc/testsuite/g++.dg/parse/octal1.C
Normal file
@ -0,0 +1 @@
|
||||
int i = 08; // { dg-error "" }
|
Loading…
Reference in New Issue
Block a user