This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using declarations
- To: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Subject: Re: Using declarations
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 16 Mar 1998 17:55:04 -0300
- Cc: egcs at cygnus dot com
- References: <199803152122.WAA24592@mira.isdn.cs.tu-berlin.de>
Martin von Loewis writes:
> I'm still not certain about the exact semantics of using declarations.
> The redeclaration of 'using A::f;' is certainly
> correct, however, the selected set of declarations should be the one
> found at the first declaration.
In my interpretation, a using declaration brings the current
definition of the specified name into the current namespace,
therefore, the redeclaration would bring the declarations of both
A::f(char) and A::f(int) into the global namespace.
But you're right, this is not explicitly stated in (my non-final copy
of) the Standard. Time for one more question in comp.std.c++
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil