[Bug libstdc++/29286] [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
gcc-bugzilla@gcc.gnu.org
Wed May 16 14:37:00 GMT 2007
------- Comment #74 from rguenth at gcc dot gnu dot org 2007-05-16 15:36 -------
Note that another solution to this whole problem is to record conflicts for
all stored-to types that we cannot disambiguate by points-to analysis. This
also solves the reading of the standard that allows
int i = 1;
(float *)&i = 0.0;
at RTL expansion time we need to do the same apart from that we don't have
points-to information available.
The above supports the notion of "re-using memory changes its dynamic type".
Which of course gets a little interesting for aggregates that are initialized
piece-wise (not that this problem isn't present now).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29286
More information about the Gcc-bugs
mailing list