This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Error in g++ library, function ___builtin_vec_new
- To: f981500 at FFZJ0LX0 dot bank dot dresdner dot net (James Kanze)
- Subject: Re: Error in g++ library, function ___builtin_vec_new
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 28 Jan 2000 08:53:43 -0200
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <0001281004.AA33552@FFZJ0LX0.bank.dresdner.net>
On Jan 28, 2000, f981500@FFZJ0LX0.bank.dresdner.net (James Kanze) wrote:
> I've encountered an error in the default implementation of
> ___builtin_vec_delete in the C++ library. From disassembly, it appears
> that this function calls free to free the memory
Indeed.
> rather than operator delete, as is required by the standard.
I can't find this requirement in the standard. The specification of
new[] and new[]nothrow do specify that they return their non-array new
counterparts, but the specification of delete[] and delete[]nothrow
just say they reclaim the memory allocated by the corresponding new[],
no mention to the non-array delete.
Am I missing anything?
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them