This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70121] [5/6/7 Regression] Spurious warning and crash when returning a reference from lambda
- From: "ppalka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Mar 2016 15:59:19 +0000
- Subject: [Bug c++/70121] [5/6/7 Regression] Spurious warning and crash when returning a reference from lambda
- Auto-submitted: auto-generated
- References: <bug-70121-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70121
--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> ---
But as Jason said in comment #4, (IIUC) the test case never compiled correctly
in any gcc version. It was marked a regression only because
-Wreturn-local-addr now deliberately returns null but arguably that's not a
regression either.