* name-lookup.c (namespace_binding): Omit alias check for global namespace.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91575
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-12-01 Matt Austern <austern@apple.com>
+
+ * name-lookup.c (namespace_binding): Omit alias check for global namespace.
+
2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
PR c++/18729
if (scope == NULL)
scope = global_namespace;
- scope = ORIGINAL_NAMESPACE (scope);
+ else
+ /* Unnecessary for the global namespace because it can't be an alias. */
+ scope = ORIGINAL_NAMESPACE (scope);
+
binding = cxx_scope_find_binding_for_name (NAMESPACE_LEVEL (scope), name);
return binding ? binding->value : NULL_TREE;