// { dg-do compile { target c++17 } } template class A; template struct B { static A a{T::a}; // { dg-error "int" } }; void foo () { B a; }