https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101465
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2021-07-15 00:00:00 |2021-7-23 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang outputs something which is worse than even GCC does: <source>:6:18: error: called object type 'void (foo::*)()' is not a function or function pointer x->*myfuncptr(); ~~~~~~~~~^ 1 error generated.