This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ambiguity in operator delete
- To: Alexander Zvyagin <zvyagin at gams dot ihep dot su>
- Subject: Re: ambiguity in operator delete
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 23 Oct 1999 15:27:05 -0200
- Cc: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>, gcc-bugs at gcc dot gnu dot org
- References: <Pine.LNX.3.96.991023174222.27798A-100000@gams.ihep.su>
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