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