parser.c (cp_parser_using_declaration): Consume the semicolon after bare parameter pack error.

* parser.c (cp_parser_using_declaration): Consume the semicolon
	after bare parameter pack error.

From-SVN: r208413
This commit is contained in:
Jason Merrill 2014-03-07 15:00:25 -05:00 committed by Jason Merrill
parent 0e4cf8872a
commit 941515205d
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2014-03-07 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_using_declaration): Consume the semicolon
after bare parameter pack error.
* cp-tree.h (REF_PARENTHESIZED_P): New.
* semantics.c (force_paren_expr): Set it.
* pt.c (do_auto_deduction): Check it.

View File

@ -16016,7 +16016,10 @@ cp_parser_using_declaration (cp_parser* parser,
USING_DECL_TYPENAME_P (decl) = 1;
if (check_for_bare_parameter_packs (decl))
return false;
{
cp_parser_require (parser, CPP_SEMICOLON, RT_SEMICOLON);
return false;
}
else
/* Add it to the list of members in this class. */
finish_member_declaration (decl);
@ -16031,7 +16034,10 @@ cp_parser_using_declaration (cp_parser* parser,
decl, NLE_NULL,
token->location);
else if (check_for_bare_parameter_packs (decl))
return false;
{
cp_parser_require (parser, CPP_SEMICOLON, RT_SEMICOLON);
return false;
}
else if (!at_namespace_scope_p ())
do_local_using_decl (decl, qscope, identifier);
else