This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Using a using-declaration to prevent name hiding.


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]