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: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 May 2007 02:47:15 -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 #38 from mark at codesourcery dot com 2007-05-04 03:47 -------
Subject: Re: [4.0/4.1/4.2/4.3 Regression] placement
new does not change the dynamic type as it should
rguenth at gcc dot gnu dot org wrote:
> ------- Comment #36 from rguenth at gcc dot gnu dot org 2007-05-03 21:59 -------
> Well, the patch in comment #33 really does what I did with the patch to
> libstdc++.
I think that Ian's second patch (the heavy hammer of a memory clobber,
generated by the front end) is also reasonable. It's more heavy-handed
than Ian's earlier solution, but certainly less intrusive and easier to
get right.
I think that either of these solutions will make user code work as
expected, which is the most important consideration. I guess my
inclination would be to go with the heavy hammer, until/unless we start
finding real code that's seriously impacted.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29286