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]
Other format: [Raw text]

[Bug c++/24658] overloaded function lookup in base class fails



------- Comment #2 from thorsten dot gecks at uni-bayreuth dot de  2005-11-03 16:49 -------
Subject: Re:  overloaded function lookup in base class fails

pinskia at gcc dot gnu dot org schrieb:
> ------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-03 16:03 -------
> This is not a bug, this is how C++ works.  The f in D hides the one in C unless
> you add "using C::f;".
> 
> 

Thank you for the fast reply, but shouldn't the compiler distinguish the 
two functions by argument?

Best regards,

TG


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24658


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