// PR c++/96330 // { dg-do compile { target c++14 } } template struct foo_t { template static constexpr bool bar = true; }; template constexpr foo_t foo{}; template void f() { int x = foo.template bar; int y = foo_t::template bar; } template void f();