parser.c (cp_parser_init_declarator): Avoid redundant cp_finish_decl for member declarations.
* parser.c (cp_parser_init_declarator): Avoid redundant cp_finish_decl for member declarations. From-SVN: r171796
This commit is contained in:
parent
b8faca75e7
commit
4e36c2131f
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
@ -14501,9 +14501,9 @@ cp_parser_init_declarator (cp_parser* parser,
|
|||
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,
|
||||
|
|
Loading…
Add table
Reference in a new issue