[Bug c++/11915] Aliasing problems with user-defined operator new
lerdsuwa at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Aug 24 15:30:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11915
lerdsuwa at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-08-24 15:30 -------
Not a bug. The provided testcase violate alias rules.
The compiler assume that the two pointers, 'this'
and 'a' in
this->p = 4711 (inside constructor)
and
a = a->next (inside new operator)
point to different object, which is not true in your code.
More information about the Gcc-bugs
mailing list