https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82520
David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org --- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> --- FWIW the analyzer branch can warn about comment #0, but only if the value gets used, not simply that it escapes. See e.g. the -Wanalyzer-use-of-pointer-in-stale-stack-frame warning within https://godbolt.org/z/PAtqhB Probably ought to warn about it simply escaping.