Commit cc469ee9 by Nathan Sidwell Committed by Nathan Sidwell

spew.c (read_token): Call yyerror on all unexpected tokens.

cp:
	* spew.c (read_token): Call yyerror on all unexpected tokens.
testsuite:
	* g++.old-deja/g++.other/crash41.C: New test.

From-SVN: r42143
parent 3f0a9b35
2001-05-16 Nathan Sidwell <nathan@codesourcery.com> 2001-05-16 Nathan Sidwell <nathan@codesourcery.com>
* spew.c (read_token): Call yyerror on all unexpected tokens.
2001-05-16 Nathan Sidwell <nathan@codesourcery.com>
* init.c (member_init_ok_or_else): Take a tree rather than * init.c (member_init_ok_or_else): Take a tree rather than
string for name. string for name.
(expand_member_init): Adjust. (expand_member_init): Adjust.
......
/* Type Analyzer for GNU C++. /* Type Analyzer for GNU C++.
Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000 Free Software Foundation, Inc. 1999, 2000, 2001 Free Software Foundation, Inc.
Hacked... nay, bludgeoned... by Mark Eichin (eichin@cygnus.com) Hacked... nay, bludgeoned... by Mark Eichin (eichin@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -353,14 +353,9 @@ read_token (t) ...@@ -353,14 +353,9 @@ read_token (t)
t->yychar = STRING; t->yychar = STRING;
break; break;
/* These tokens should not survive translation phase 4. */
case CPP_HASH:
case CPP_PASTE:
error ("syntax error before '#' token");
goto retry;
default: default:
abort (); yyerror ("parse error");
goto retry;
} }
t->lineno = lineno; t->lineno = lineno;
......
2001-05-16 Nathan Sidwell <nathan@codesourcery.com> 2001-05-16 Nathan Sidwell <nathan@codesourcery.com>
* g++.pt/inherit2.C: Remove XFAIL. * g++.old-deja/g++.other/crash41.C: New test.
* g++.pt/crash66.C: New test.
2001-05-16 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.pt/inherit2.C: Remove XFAIL.
* g++.old-deja/g++.pt/crash66.C: New test.
2001-05-15 Benjamin Kosnik <bkoz@redhat.com> 2001-05-15 Benjamin Kosnik <bkoz@redhat.com>
......
// Build don't link:
//
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 8 May 2001 <nathan@codesourcery.com>
// Bug 2744. We ICE'd on strange characters
@ // ERROR - parse error
int a; #// ERROR - parse error
## // ERROR - parse error
$ // ERROR - parse error
£ // ERROR - parse error
` // ERROR - parse error
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment