https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80710
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So what happening here is you are not calling the function in ABI compatible way at all. So this code is way undefined.