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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2004 13:14:54 -0000
- Subject: [Bug c++/986] g++ misses warning for & on temporary
- References: <20001205001601.986.wolfgang.bangerth@iwr.uni-heidelberg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-06-16 13:14 -------
Right, the temporary most definitely can't live until the end of
the object, since if this were so the compiler would have to create
a list of temporaries generated during construction, and delete them
during destruction of the object. We know that this doesn't happen.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=986