This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64329] Crash when returning reference from lambda with deduced type
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 16 Apr 2016 13:30:45 +0000
- Subject: [Bug c++/64329] Crash when returning reference from lambda with deduced type
- Auto-submitted: auto-generated
- References: <bug-64329-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64329
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> (In reply to Michael Stahl from comment #1)
> > i believe i've hit the same problem
>
> I don't think so. The original bug report is for 4.9.3, and seems to be an
> actual compiler bug that is fixed already in GCC 5 and later.
>
> Your case is invalid code. While I agree a warning would be nice, it's not
> the same as a bug in 4.9.3 that has been fixed.
I've created PR 70692 for the missing warning on the invalid code, since it's a
different problem to the one in this PR.