https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89777
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|wrong-code | Status|UNCONFIRMED |RESOLVED Component|tree-optimization |rtl-optimization Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- p_bb1->bar<blah_blah *>(); is undefined because p_bb1 is a NULL pointer. You can find this behavior at runtime by using -fsanitize=undefined.