https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88518
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think there is a dup of this bug already and one which descibes what need to be done. Basically escape analysis is not flow sensative. That means GCC is currently assuming that i escapes at the very first function call, h, rather later on when g is called.