This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33407] [4.1/4.3 Regression] C++ operator new and new expression do not change dynamic type
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2008 12:43:34 -0000
- Subject: [Bug c++/33407] [4.1/4.3 Regression] C++ operator new and new expression do not change dynamic type
- References: <bug-33407-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from rguenth at gcc dot gnu dot org 2008-01-18 12:43 -------
The patch should indeed work and I suggest we go forward with it for 4.3.
For 4.4, can we use this sort of flag (name it no_tbaa_for_result) to handle
both the operator new and the placement new case where for the latter we
at the moment do the CHANGE_DYNAMIC_TYPE_EXPR thing? After all, the
placement new also gets inlined from its libstdc++ implementation.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33407