https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108848
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-02-20 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=67965 Ever confirmed|0 |1 Summary|Accessing class static |template keyword |member of non-dependent |incorreclty required to |expression using member |access template class |syntax in dependent context |static member of |is rejected |non-dependent expression | |using member syntax in | |dependent context --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase to show it is not an issue with decltype: template <class T> struct tag_t { template <class Sig> static constexpr const Sig* smbr = nullptr; }; template <class T> inline constexpr tag_t<T> tag {}; template<class T> void f() { auto t = tag<int>.smbr<void>; }