PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr65186.C
blobf5e81e37ebab51756dddebec87f17bc5d3876437
1 // { dg-do compile { target c++11 } }
2 // PR c++/65186
4 template<typename A, A x, A y>
5 using Id = int;
7 template<
8   typename A,
9   A x,
10   A y,
11   Id<A, x, y> p,
12   template<A a, A b, Id<A, a, b>> class C,
13   C<x, x, x> // { dg-bogus "not a valid type" }
14 > using J = C<x, y, p>;
17 template<class A>
18 using Z = A;
20 template<
21   template <class> class A,
22   A<int> B // { dg-bogus "not a valid type" }
24 struct C { };
26 C<Z, 5> a;