// PR c++/51225 // { dg-do compile { target c++11 } } template struct A {}; template void foo() { A a; // { dg-error "not declared|invalid type" } } template struct bar { static constexpr A<1> b = A<1>(x); // { dg-error "not declared" } };