This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49974] missing warning for indirectly returning reference to local/temporary
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 4 Aug 2011 12:48:54 +0000
- Subject: [Bug c++/49974] missing warning for indirectly returning reference to local/temporary
- Auto-submitted: auto-generated
- References: <bug-49974-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49974
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.08.04 12:48:48
Ever Confirmed|0 |1
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-04 12:48:48 UTC ---
You could try to rely on points-to information. When it says that all possible
pointees are automatic variable it's for sure an error (or a points-to bug).