aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction82.C
blob: 238024c508feb7b6bff5d63f77fb6b0ce2dc014e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/99009
// { dg-do compile { target c++17 } }

template<typename> struct B {
  B(int = A()) {}
  template <typename ...> struct A;
};

template<typename T> struct X {
  template <T...> struct Y;
  X() { Y y; };
};