This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/71924] missing -Wreturn-local-addr returning alloca result
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Nov 2016 00:16:47 +0000
- Subject: [Bug c/71924] missing -Wreturn-local-addr returning alloca result
- Auto-submitted: auto-generated
- References: <bug-71924-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71924
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
On second thought, the right fix is to report the problem consistently for all
kinds of storage, including auto variables, alloca-ted storage, and compound
literals.