Bug in egcs (C++)

Alexandre Oliva oliva@dcc.unicamp.br
Fri Oct 9 22:42:00 GMT 1998


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




More information about the Gcc-bugs mailing list