re PR c++/7679 (The compiler crashes wen a right parentesis is missing)
authorMark Mitchell <mark@codesourcery.com>
Wed, 23 Oct 2002 18:38:23 +0000 (18:38 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 23 Oct 2002 18:38:23 +0000 (18:38 +0000)
commite6f052b7e6e0d3969b9e3b1357980e00403d62cc
treea026babb434289dd715599cb3c26a633d808ded5
parent16448fd4f0b1c5ef78e5b5e463cc77e8aec14c96
re PR c++/7679 (The compiler crashes wen a right parentesis is missing)

PR c++/7679
* spew.c (next_token): Do not return an endless stream of
END_OF_SAVED_INPUT tokens.
(snarf_method): Add three END_OF_SAVED_INPUT tokens to the end of
the cached token stream.
(snarf_defarg): Likewise.

PR c++/7679
* g++.dg/parse/inline1.C: New test.

From-SVN: r58465
gcc/cp/ChangeLog
gcc/cp/spew.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/inline1.C [new file with mode: 0644]