This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Namespace aliases
- To: "Martin v. Loewis" <loewis at informatik dot hu-berlin dot de>, egcs-patches at cygnus dot com
- Subject: Re: Namespace aliases
- From: Jason Merrill <jason at cygnus dot com>
- Date: 04 Jun 1998 02:02:57 -0700
- References: <199806021937.VAA11680@pandora>
>>>>> Martin v Loewis <loewis@informatik.hu-berlin.de> writes:
> ! DECL_CONTEXT (alias) = DECL_CONTEXT (namespace);
This seems wrong; a namespace alias is not automatically in the same scope
as the namespace it refers to.
Also, the if (alias) ns = alias; structure is awkward. This should use a
macro or a function, i.e.
STRIP_NAMESPACE_ALIASES (ns);
or
ns = target_namespace (ns);
I don't much care which.
Jason