OSDN Git Service

cp:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jan 2003 18:40:22 +0000 (18:40 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jan 2003 18:40:22 +0000 (18:40 +0000)
commit42bbd0ec35ffa6f3c69b17b407e046e6985a34a6
tree649fe3bdf8170a387fdf89fd878e30bb2641d027
parent8fdaf281e068b8522e16ec2ca50f821a471d5580
cp:
PR c++/9109
* parser.c (cp_parser_declarator_kind): New enum.
(cp_parser_declarator): Adjust.
(cp_parser_direct_declarator): Adjust. Allow for either named or
abstract declarator. Prefer abstract, if possible. Allow
parenthesized function name.
(cp_parser_condition): Adjust cp_parser_declarator call.
(cp_parser_explicit_instantiation): Likewise.
(cp_parser_init_declarator): Likewise.
(cp_parser_type_id): Likewise.
(cp_parser_function_definition): Likewise.
(cp_parser_member_declaration): Likewise.
(cp_parser_parameter_declaration): Use cp_parser_declarator to do
the tentative parsing.
(cp_parser_exception_declaration): Likewise.
testsuite:
* g++.dg/parse/ambig1.C: New test.
* g++.dg/parse/defarg2.C: New test.

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