This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16299] copy constructor not being called
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2004 15:58:09 -0000
- Subject: [Bug c++/16299] copy constructor not being called
- References: <20040630154039.16299.r_winter@optusnet.com.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-06-30 15:58 -------
No, gcc is allowed to do this. You must write your code so that eliding
a copy constructor to copy from a temporary does not affect the outcome.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16299