This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/29286] [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2007 21:44:10 -0000
- Subject: [Bug libstdc++/29286] [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should
- References: <bug-29286-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #104 from pcarlini at suse dot de 2007-05-18 22:44 -------
(In reply to comment #103)
> If the element type is a POD, we should use assignment, not placement new.
Agreed, in principle. But before adding a load of templates and dispatching,
let's wait a bit for the outcome of this issue and benchmark carefully: the
performance difference may be minor, given that we are dynamically allocating
memory for the new node.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29286