ambiguity in operator delete

Alexandre Oliva oliva@lsd.ic.unicamp.br
Sun Oct 31 23:03:00 GMT 1999


On Oct 23, 1999, Alexander Zvyagin <zvyagin@gams.ihep.su> wrote:

> Class C2 has two copies of class A. If I remove declaration of
> A::operator delete the code will be correct - gcc-2.95.1 finds no
> errors. There is default (global) operator delete for class A and it
> does all work.

There's no default operator delete for class A, there's just the
global operator delete, used because class A doesn't define its own.
So there's no ambiguity.

-- 
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



More information about the Gcc-bugs mailing list