This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/986] g++ misses warning for & on temporary
- From: "raf2 at msux dot cjb dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2007 08:30:33 -0000
- Subject: [Bug c++/986] g++ misses warning for & on temporary
- References: <bug-986-184@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from raf2 at msux dot cjb dot net 2007-05-14 09:30 -------
We have talked about the undefined behaviour of having references to objects
that have been destroyed.
Can someone provide a program with that undefined behaviour that could not be
considered an error?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=986