// PR c++/108848 // { dg-do compile { target c++14 } } template struct tag_t { template static constexpr const Sig* var = nullptr; template static const Sig* fun(); }; template constexpr tag_t tag; template void f() { tag.var; // { dg-bogus "expected 'template' keyword" } tag.fun(); // { dg-bogus "expected 'template' keyword" } };