re PR c++/9162 ([New parser] Problem with default argument in a friend function)
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 3 Jul 2003 16:10:52 +0000 (16:10 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 3 Jul 2003 16:10:52 +0000 (16:10 +0000)
commit8db1028ebab32f0d725be8dc886a6aa335d81575
treececd1124ba5e8aecaff532002a217533915f83ea
parent58eabcb1e9b9e16550757ba6b744148d20a7457f
re PR c++/9162 ([New parser] Problem with default argument in a friend function)

cp:
PR c++/9162
* decl.c (grokdeclarator): Return friend decls, not
void_type_node.
* decl2.c (grokfield): Alter friend decl check.
* parser.c (struct cp_parser): Document default_arg chain on
unparsed_functions_queue.
(cp_parser_save_default_args): New.
(cp_parser_init_declarator, cp_parser_function_definition,
cp_parser_member_declaration): Call it.
(cp_parser_class_specifier): Remove unused variable. Alter
processing of unparsed_functions_queue.
testsuite:
PR c++/9162
* g++.dg/parse/defarg4.C: New.

From-SVN: r68886
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/friend.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/defarg4.C [new file with mode: 0644]