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
1 changed files with 6 additions and 0 deletions
6
gcc/testsuite/g++.dg/parse/saved1.C
Normal file
6
gcc/testsuite/g++.dg/parse/saved1.C
Normal 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 "" "" }
|
Loading…
Add table
Reference in a new issue