re PR c++/13269 (compiler hangs on invalid code)
commit21eb631b826dd6512cc47013a990a471cdcc1008
authorMark Mitchell <mark@codesourcery.com>
Tue, 16 Dec 2003 01:49:41 +0000 (16 01:49 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 16 Dec 2003 01:49:41 +0000 (16 01:49 +0000)
tree914f5c8226356b671160a50d38b6a3effa0477d8
parentea0e2a51f400471a67bf3979fb9e30390eb7a34b
re PR c++/13269 (compiler hangs on invalid code)

PR c++/13269
* parser.c (cp_parser_function_definition_after_declarator): Stop
scanning tokens when reaching EOF.

PR c++/13269
* g++.dg/parse/error5.C: New test.

From-SVN: r74661
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error5.C [new file with mode: 0644]