re PR c++/15786 (Bad error message for frequently occuring error.)
authorMark Mitchell <mark@codesourcery.com>
Tue, 12 Oct 2004 01:52:19 +0000 (01:52 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 12 Oct 2004 01:52:19 +0000 (01:52 +0000)
commitdb86dd146950103140950aff4486330a566ddf4b
tree779a6e11679ea98bb58ce6b9b68146785e21be6c
parent5a1e5472f5864b2a31d3ccee2c08fc26496dfeab
re PR c++/15786 (Bad error message for frequently occuring error.)

PR c++/15786
* parser.c (cp_parser_declarator): Add member_p parameter.
(cp_parser_condition): Adjust calls to cp_parser_declarator.
(cp_parser_explicit_instantiation): Likewise.
(cp_parser_init_declarator): Likewise.
(cp_parser_direct_declarator): Add member_p parameter.  Do not
parse tentatively when parsing the parameters to a member.
(cp_parser_type_id): Adjust calls to cp_parser_declarator.
(cp_parser_parameter_declaration): Likewise.
(cp_parser_member_declaration): Likewise.
(cp_parser_exception_declaration): Likewise.

PR c++/15876
* g++.dg/parse/error22.C: New test.

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