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:
parent
72a08131a5
commit
7c4577d93a
|
@ -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 "" "" }
|
Loading…
Reference in New Issue