This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15704] Copy constructor is not called
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2004 11:28:00 -0000
- Subject: [Bug c++/15704] Copy constructor is not called
- References: <20040528101645.15704.justin@cs.utah.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-05-28 11:27 -------
Not a bug.
The compiler is allowed to optimize away calls to the copy constructor,
even if the copy-construtor or the destructor have side-effects, see 12.8.15.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15704