This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Error in g++ library, function ___builtin_vec_new


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]