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:
Mark Mitchell 2003-01-13 00:14:59 +00:00 committed by Mark Mitchell
parent 70f8b89fd9
commit e8f2b18d0e
4 changed files with 16 additions and 0 deletions

View File

@ -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'.

View File

@ -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:

View File

@ -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.

View File

@ -0,0 +1 @@
int i = 08; // { dg-error "" }