This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Is this right, or a bug?
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Nick Glencross <nickg at glencros dot demon dot co dot uk>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 01 Mar 2004 04:11:13 -0300
- Subject: Re: Is this right, or a bug?
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <4040F749.3020409@glencros.demon.co.uk>
On Feb 28, 2004, Nick Glencross <nickg@glencros.demon.co.uk> wrote:
> 'main' through 'class2'. There's a compiler error saying that 'method
> (int)' doesn't exist, only 'method ()'.
That's correct. The declaration in class2 hides all declarations in
the base class, even those that aren't explicitly overridden.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Happy GNU Year! oliva@{lsd.ic.unicamp.br, gnu.org}
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist Professional serial bug killer