[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:38:05 GMT 2022


Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
      Known to fail|                            |4.8.1, 5.1.0
   Last reconfirmed|                            |2022-06-14

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
here is a testcase without using static_assert:
    struct A {void g()&;};
    using F = void() &; 
    F A::* t = &A::g;

Confirmed. Not a regression.

More information about the Gcc-bugs mailing list