]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/23440 ("void f(){for" crashes the C++ frontend)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Mon, 17 Oct 2005 22:22:30 +0000 (22:22 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Mon, 17 Oct 2005 22:22:30 +0000 (22:22 +0000)
commit0ef8776d01a50a33031e4bbc3ee03349bf7de862
tree17b5d7c8ffa253c8d27c1450f2e0aca70beccc92
parent4213f93b6aea64f4ea5f8a539a3f0ad912bec1d2
re PR c++/23440 ("void f(){for" crashes the C++ frontend)

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.

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