This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17435] [4.0 Regression] Temporay bound to reference is immediately destructed
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2004 13:11:55 -0000
- Subject: [Bug c++/17435] [4.0 Regression] Temporay bound to reference is immediately destructed
- References: <20040912110521.17435.vlukas@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-09-13 13:11 -------
I think I remember that there was some language in the standard that
says that the compiler _may_ invoke the copy constructor (which, btw,
was the reason the copy constructor of the base class has to be
accessible, one of our constant streams of bug reports). I understand
that that is a rather vague pointer at the right place of the standard,
I guess I will have to go look it up some time, just not today.
Even then, the question whether this change is desirable is completely
orthogonal.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17435