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: ambiguity in operator delete


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


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