* parser.c (cp_parser_init_declarator): Avoid redundant
cp_finish_decl for member declarations.
From-SVN: r171796
+2011-03-31 Jason Merrill <jason@redhat.com>
+
+ * parser.c (cp_parser_init_declarator): Avoid redundant
+ cp_finish_decl for member declarations.
+
2011-03-30 Jason Merrill <jason@redhat.com>
PR c++/48212
cp_parser_save_default_args (parser, decl);
}
- /* Finish processing the declaration. But, skip friend
+ /* Finish processing the declaration. But, skip member
declarations. */
- if (!friend_p && decl && decl != error_mark_node && !range_for_decl_p)
+ if (!member_p && decl && decl != error_mark_node && !range_for_decl_p)
{
cp_finish_decl (decl,
initializer, !is_non_constant_init,