2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction52.C
blob6ea9e8087d64a97dfcad3c1fbe4f33febf605aba
1 // PR c++/84768
2 // { dg-do compile { target c++17 } }
4 template<typename> struct A {};
6 template<typename T> struct B
8   template<X Y> B(A<T>);  // { dg-error "declared" }
9 };
11 B b = A<void>();