This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51270] missed warning about returning reference to temporary
- 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: Tue, 11 Jul 2017 16:42:42 +0000
- Subject: [Bug c++/51270] missed warning about returning reference to temporary
- Auto-submitted: auto-generated
- References: <bug-51270-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51270
--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's a pity you need at least -O2 for the warnings, but I agree we can close it
as fixed.