This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in egcs (C++)
- To: Mathias Born <mborn at faphida dot in-berlin dot de>
- Subject: Re: Bug in egcs (C++)
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 10 Oct 1998 02:33:27 -300
- Cc: egcs-bugs at cygnus dot com
- References: <361E883D.622D6BF7@faphida.in-berlin.de>
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