https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59931
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-08-04 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC: <source>:6:35: error: cannot convert 'C::f' from type 'void (C::)()' to type 'void (C::*)()' clang: <source>:6:21: error: reference to non-static member function must be called; did you mean to call it with no arguments? <source>:6:13: error: cannot initialize a variable of type 'void (C::*)()' with an rvalue of type 'void' ICC: <source>(6): error #547: nonstandard form for taking the address of a member function MSVC: <source>(6): error C3867: 'C::f': non-standard syntax; use '&' to create a pointer to member Of these messages, I don't know which is the best, they all seems bad.