// PR c++/28341 template struct A {}; template struct B { A<(T)0> b; // { dg-error "constant|not a valid" } A a; // { dg-error "constant|not a valid" } }; B b;