Using a using-declaration to prevent name hiding.

Alexandre Oliva oliva@dcc.unicamp.br
Wed Sep 9 05:52:00 GMT 1998


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




More information about the Gcc mailing list