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;