This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17435] [4.0 Regression] Binding a temporary of derived type to reference of base
- From: "vlukas at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2004 15:07:51 -0000
- Subject: [Bug c++/17435] [4.0 Regression] Binding a temporary of derived type to reference of base
- References: <20040912110521.17435.vlukas@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From vlukas at gmx dot de 2004-09-13 15:07 -------
(In reply to comment #4)
> 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.
I assume you mean 12.2 "Temporary objects".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17435