[Bug c++/108848] template keyword incorreclty required to access template class static member of non-dependent expression using member syntax in dependent context
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 20 19:14:05 GMT 2023
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>;
}
More information about the Gcc-bugs
mailing list