https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69538
--- Comment #5 from ktkachov at gcc dot gnu.org --- Patch posted at: https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00634.html and Richards' reply at: https://gcc.gnu.org/ml/gcc-patches/2016-04/msg00388.html There's more digging to do in how we asses whether a function escapes the translation unit. I'm not currently working on this.