This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ Koenig-lookup bug
- To: egcs at cygnus dot com
- Subject: g++ Koenig-lookup bug
- From: ncm at cantrip dot org
- Date: 17 Oct 1998 09:58:38 GMT
- Newsgroups: cygnus.egcs
- Organization: http://www.cantrip.org/
I think Koenig lookup should find both B::f and ::f, and
call ::f, here:
struct A {};
void f(A&);
struct B {
void f(B&) { A a; f(a); }
};
But Egcs-1.1 says:
clhide.cc: In method `void B::f(struct B &)':
clhide.cc:4: no matching function for call to `B::f (A &)'
clhide.cc:4: candidates are: B::f(B &)
Nathan Myers
ncm@cantrip.org