This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/29286] [4.2 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: 29 Sep 2006 16:23:47 -0000
- Subject: [Bug libstdc++/29286] [4.2 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 #10 from pcarlini at suse dot de 2006-09-29 16:23 -------
(In reply to comment #9)
> There has to be some communutation between the library and the compiler to tell
> it that the memory location is being reused as defined by 3.8 of the standard.
Yes. But considering that the placement forms cannot be replaced by an user
program, isn't conceptually cleaner for the C++ front-end to simply recognize
those forms and do the right thing?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29286