| 1 |
// PR c++/69515 |
| 2 |
// { dg-do link { target c++14 } } |
| 3 |
|
| 4 |
struct A { A(int = 0) {} }; |
| 5 |
|
| 6 |
template<class...> class meow; |
| 7 |
|
| 8 |
template<typename T> A foo; |
| 9 |
template<typename... Ts> A foo<meow<Ts...>> = 1; |
| 10 |
|
| 11 |
auto&& a = foo<meow<int>>; |
| 12 |
auto&& b = foo<meow<int, int>>; |
| 13 |
|
| 14 |
int main() {} |