re PR c++/16002 (Strange error message with new parser)
authorMark Mitchell <mark@codesourcery.com>
Fri, 17 Sep 2004 07:01:11 +0000 (07:01 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 17 Sep 2004 07:01:11 +0000 (07:01 +0000)
commit996c2b52487b8de1dff2ebe4b7183e70fc2bf8fa
tree31d8b36fa313f0878513ac28178a92704ead8962
parent275a4187085d13c53f0cb27ca74d3d73cebd58f9
re PR c++/16002 (Strange error message with new parser)

PR c++/16002
* parser.c (cp_parser_simple_declaration): Commit to tentative
parses after seeing a decl-specifier.
(cp_parser_simple_declaration): Eliminate spurious message.
(cp_parser_init_declarator): Adjust error message.

PR c++/16029
* lex.c (unqualified_name_lookup_error): Mark the dummy
declaration as used.

PR c++/16002
* g++.dg/template/error18.C: New test.

PR c++/16029
* g++.dg/warn/Wunused-8.C: New test.

From-SVN: r87633
gcc/cp/ChangeLog
gcc/cp/lex.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error18.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wunused-8.C [new file with mode: 0644]