This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69730] problem with references and templates when using O2
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Feb 2016 20:39:11 +0000
- Subject: [Bug c++/69730] problem with references and templates when using O2
- Auto-submitted: auto-generated
- References: <bug-69730-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69730
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
I wonder if it would be possible to warn about this. -Wreturn-local-addr does
not trigger because the reference is ok. It is the object which is temporary,
but that may be hard to detect.