Namespace 'using' at global scope, recently broken
Martin von Loewis
martin@mira.isdn.cs.tu-berlin.de
Thu Aug 27 15:40:00 GMT 1998
> I agree with your remarks pertaining to "using Some::Display",
> but how about "using namespace Some"? That is, of course,
> a using directive.
You didn't actually read my original message, did you? I did not claim
that this specific using directive would be an error; it is not.
Instead, the error results when you later use the name Display
unqualified; lookup will then find two types with that name appearing
in the default name space. This is ambiguous, and therefore an error.
In your original example, this was commented out, and therefore
meaningless. Please let's discuss one problem at a time.
Regards,
Martin
More information about the Gcc-bugs
mailing list