PR c++/23440
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Oct 2005 22:22:30 +0000 (22:22 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Oct 2005 22:22:30 +0000 (22:22 +0000)
commit5f959b7da319ae9245a76feb9749b7a6e222bb14
tree17b5d7c8ffa253c8d27c1450f2e0aca70beccc92
parentea13b9b7b59a9df6daf09a199be68e6947aa5a41
PR c++/23440
* parser.c (cp_parser_statement): If the parser reached CPP_EOF,
only complain about missing statement.

* g++.dg/parse/for1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105520 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/for1.C [new file with mode: 0644]