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: none


Mike Shirobokov writes:

> egcs_bug.cc: In function `int main()':
> egcs_bug.cc:13: no matching function for call to `B<int>::a ()'
> egcs_bug.cc:8: candidates are: B<int>::a(int)

This is correct.  The declaration of B<int>::a(int) hides any entities
named `a' from its base classes, unless they're un-hidden by `using'
declaration or access specifiers in B<int>.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil


--VAA24050.890372448/cygnus.com--





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