[Bug c/82520] Missing warning when stack addresses escape the current scope
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 10 17:35:00 GMT 2019
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.
More information about the Gcc-bugs
mailing list