This is the mail archive of the gcc-bugs@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: Namespace 'using' at global scope, recently broken


> 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


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