------- 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