This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug: Failure to compile legal code (gcc-2.95.2)
- To: Mike Harrold <mharrold at cas dot org>
- Subject: Re: Bug: Failure to compile legal code (gcc-2.95.2)
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 17 Jan 2001 12:32:31 -0200
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200101171319.IAA07308@mah21awu.cas.org>
On Jan 17, 2001, Mike Harrold <mharrold@cas.org> wrote:
> The code below fails to compile. However, if the commented line in class B
> is uncommented, it compiles fine. I assume this is a bug, or I am missing
> something very obvious.
IIRC, the declaration of operator<< in class B hides the one in class
A.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me