+2018-02-16 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/82468
+ * decl.c (check_special_function_return_type): Reject template
+ template parameter in deduction guide.
+
2018-02-16 Nathan Sidwell <nathan@acm.org>
PR c++/84375
error_at (smallest_type_quals_location (type_quals, locations),
"qualifiers are not allowed on declaration of "
"deduction guide");
- type = make_template_placeholder (CLASSTYPE_TI_TEMPLATE (optype));
+ if (TREE_CODE (optype) == TEMPLATE_TEMPLATE_PARM)
+ {
+ error ("template template parameter %qT in declaration of "
+ "deduction guide", optype);
+ type = error_mark_node;
+ }
+ else
+ type = make_template_placeholder (CLASSTYPE_TI_TEMPLATE (optype));
for (int i = 0; i < ds_last; ++i)
if (i != ds_explicit && locations[i])
error_at (locations[i],