[Bug c++/105967] Forming a pointer to ref-qualified member function using a function typedef ignores the qualifier
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 14 07:36:08 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105967
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note it looks like the pointer to member function type is where it loses the
ref-qualifer and not earlier.
That is GCC correctly rejects:
using F = void() &;
F t;
More information about the Gcc-bugs
mailing list