This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Namespace 'using' at global scope, recently broken
- To: egcs-bugs at cygnus dot com
- Subject: Re: Namespace 'using' at global scope, recently broken
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 28 Aug 1998 00:39:06 +0200
- References: <199808271639.LAA18644@homebase.citilink.com>
> 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