[Bug c++/82791] Inconsistency with member function pointer access
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 23 21:39:18 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82791
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-07-23
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Keywords| |accepts-invalid
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With -pedantic-errors only:
auto foo = typeid(obj.*mfp).name(); //returns "void ()"
is accepted.
The rest is not.
GCC does have an extension converting PMF to a pointer function which is
definitely happening here.
More information about the Gcc-bugs
mailing list