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: Bug in egcs (C++)


Mathias Born <mborn@faphida.in-berlin.de> writes:

> void B::alpha(int x)
> {
>   // msg here: "no matching function call for call B::alpha ()"
>   //           "candidates are: B::alpha(int)"
>   alpha();              // egcs does not find A::alpha()

It shouldn't.  The declaration of B::alpha(int) hides A::alpha.

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



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