1 // PR c++/28110 2 // { dg-do compile } 3 4 template<int> struct A {}; 5 6 template<typename T> struct B 7 { 8 template<T I> B(A<I>); // { dg-error "" } 9 }; 10 11 B<double> a=A<0>(); // { dg-error "non-scalar type" } 12