https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98436
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think you have a problem _ZN7MyClass17myUndefinedMethodEv is not correct. It has an argument passed to it which you don't take into account. Also what you are doing is undefined as the "this" argument does not have to passed as the same as a normal arugment.