This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
using-directives
- To: egcs at cygnus dot com
- Subject: using-directives
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Tue, 17 Mar 1998 08:48:12 +0100
Sorry for posting all this C++ stuff to the egcs list, I get more
feedback here than I do on comp.std.c++ (thanks, Alexandre!).
So what's the relation between using directives and shadowing? I.e. is
namespace A{
void X();
struct X{};
}
using A::X;
struct X x;
correct C++? [namespace.qual]/2 seems to indicate that it is.
Also, what about
namespace A{
void X();
}
namespace B{
using A::X;
struct X{};
}
using B::X;
Is this illegal because of [namespace.qual]/5?
TIA,
Martin