This is the mail archive of the gcc-patches@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 aliases


>>>>> 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


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