// PR c++/109876 // { dg-do compile { target c++17 } } struct Foo {}; template struct X {}; void g() { static constexpr Foo foo{}; X x; } template void f() { static constexpr Foo foo{}; X x; } void h () { f<0>(); f<1>(); }