gcc/kcc difference
Alexandre Oliva
oliva@lsd.ic.unicamp.br
Wed Dec 15 13:07:00 GMT 1999
On Dec 15, 1999, Joe Buck <jbuck@synopsys.COM> wrote:
> I believe that gcc-2.95.1 is correct and KCC is wrong. The reason is
> that, as Stroustrup puts it, overloading is not applied across different
> scopes.
But then, there's Koenig lookup, and a contorted reading of its
definition may lead one to believe that definitions of Unipolar in the
global namespace should be considered because `int' (the type of the
first argument of the function) is in the global namespace (is it?).
I don't think this argument is defensible, though.
--
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
mailing list