+2015-07-13 Patrick Palka <ppalka@gcc.gnu.org>
+
+ PR c++/65186
+ * pt.c (invalid_nontype_parm_type_p): Accept a bound template
+ template parm type under C++11 and later.
+
2015-07-12 Aldy Hernandez <aldyh@redhat.com>
* call.c: Fix double word typos.
return 0;
else if (TREE_CODE (type) == NULLPTR_TYPE)
return 0;
+ /* A bound template template parm could later be instantiated to have a valid
+ nontype parm type via an alias template. */
+ else if (cxx_dialect >= cxx11
+ && TREE_CODE (type) == BOUND_TEMPLATE_TEMPLATE_PARM)
+ return 0;
if (complain & tf_error)
{
+2015-07-13 Patrick Palka <ppalka@gcc.gnu.org>
+
+ PR c++/65186
+ * g++.dg/template/pr65186.C: New test.
+
2015-07-13 Mantas Mikaitis <mantas.mikaitis@arm.com>
* gcc.target/arm/macro_defs0.c: Add directive to skip
--- /dev/null
+// { dg-do compile { target c++11 } }
+// PR c++/65186
+
+template<typename A, A x, A y>
+using Id = int;
+
+template<
+ typename A,
+ A x,
+ A y,
+ Id<A, x, y> p,
+ template<A a, A b, Id<A, a, b>> class C,
+ C<x, x, x> // { dg-bogus "not a valid type" }
+> using J = C<x, y, p>;
+
+
+template<class A>
+using Z = A;
+
+template<
+ template <class> class A,
+ A<int> B // { dg-bogus "not a valid type" }
+>
+struct C { };
+
+C<Z, 5> a;