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

template<typename> struct A {};

template<typename T> struct B
{
  template<X Y> B(A<T>);  // { dg-error "declared" }
};

B b = A<void>();