This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using a using-declaration to prevent name hiding.
- To: Vaughn Cato <vcato at bellsouth dot net>
- Subject: Re: Using a using-declaration to prevent name hiding.
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 08 Sep 1998 23:50:17 z
- Cc: egcs at cygnus dot com
- References: <35F4432C.3E58CD94@bellsouth.net>
Vaughn Cato <vcato@bellsouth.net> writes:
> The following example from the Dec 1996 C++ Draft does not compile under
> egcs 1.1 (egcs-2.91.57):
> cannot adjust access to `void B::f(char)' in `struct D'
> because of local method `void D::f(int)' with same name
The example is unchanged in the final Standard [namespace.udecl]/3.
The error messages is wrong; the code should be accepted.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil