// PR c++/62207 template class X { public: template class Y {}; template void y() {} X(F f) { Y y; // { dg-error "not a constant" } y.value(); } }; int main() { X x(1); }