This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31289] gcc412 elides code in operator delete() override method
- 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: 21 Mar 2007 09:58:16 -0000
- Subject: [Bug c++/31289] gcc412 elides code in operator delete() override method
- References: <bug-31289-14281@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rguenth at gcc dot gnu dot org 2007-03-21 09:58 -------
This is related to PR29286, the C++ aliasing rules are disputedly different
from
the C ones. So at the moment you cannot implement an allocator in C++ (and in
C in general). That said, the proper way is to start a new object lifetime
using placement new.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31289