This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Placement new[] weirdness
- To: Joe Buck <jbuck at Synopsys dot COM>
- Subject: Re: Placement new[] weirdness
- From: Jason Merrill <jason at cygnus dot com>
- Date: 16 Jul 1999 19:15:44 -0700
- Cc: mrs at wrs dot com (Mike Stump), branko dot cibej at hermes dot si, pooh at msu dot ru, egcs at egcs dot cygnus dot com
- References: <199907161727.KAA18323@atrus.synopsys.com>
Yes, this situation sucks. But it's not a bug; the void* placement array
new as defined in the standard is inherently useless. You might file a
defect report.
As you (Andrey) noted, egcs doesn't allocate space for the cookie if the
object type doesn't have a destructor; that was me trying to make it more
useful. Perhaps I should have disabled the cookie for all cases of the
standard placement new, since there's no well-formed delete-expression you
can use to delete the result of such a new.
Jason