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.
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);
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