1 // PR c++/28341
2
3 template<const int&> struct A {};
4
5 template<typename T> struct B
6 {
7 A<(T)0> b; // { dg-error "constant|not a valid" }
8 A<T(0)> a; // { dg-error "constant|not a valid" "" { xfail c++98_only } }
9 // PR c++/68699
10 };
11
12 B<const int&> b;
13