blob: bbd1e7fc7aeb3598f38a3c9d2219d41521d26d80 [file] [log] [blame]
// PR c++/28110
// { dg-do compile }
template<int> struct A {};
template<typename T> struct B
{
template<T I> B(A<I>); // { dg-error "template constant parameter" }
};
B<double> a=A<0>(); // { dg-error "non-scalar type" }