spew.c (end_input): No longer static.

* spew.c (end_input): No longer static.
        * cp-tree.h: Declare it.
        * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.

From-SVN: r46124
This commit is contained in:
Jason Merrill 2001-10-09 11:44:17 -04:00
parent 72a08131a5
commit 7c4577d93a
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
// Test that the parser doesn't go into an infinite loop from ignoring the
// PRE_PARSED_FUNCTION_DECL token.
class C { static void* operator new(size_t); }; // { dg-error "" "" }
void* C::operator new(size_t) { return 0; } // { dg-error "" "" }
class D { D(int i): integer(i){}}; // { dg-error "" "" }