[Bug c++/90647] Warn on returning a lambda with captured local variables
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 30 10:53:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90647
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2019-11-30
Blocks|87403 |90556, 54367
Ever confirmed|0 |1
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Antony Polukhin from comment #2)
> -Wreturn-local-addr looks good to me
Hm, I suddenly got the idea that there was another bug under the
-Wreturn-local-addr meta-bug that this might be a dup of, but after checking,
it doesn't look like it after all... confirmed as a separate bug for now, I
guess.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403
[Bug 87403] [Meta-bug] Issues that suggest a new warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90556
[Bug 90556] [meta-bug] bogus/missing -Wreturn-local-addr
More information about the Gcc-bugs
mailing list