* decl.c (xref_tag): Don't SET_IDENTIFIER_NAMESPACE_VALUE.
authorJason Merrill <jason@casey.cygnus.com>
Wed, 16 Feb 2000 21:11:08 +0000 (21:11 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 16 Feb 2000 21:11:08 +0000 (16:11 -0500)
From-SVN: r32015

gcc/cp/ChangeLog
gcc/cp/decl.c

index 29492ae..4802c50 100644 (file)
@@ -1,3 +1,7 @@
+2000-02-15  Jason Merrill  <jason@casey.cygnus.com>
+
+       * decl.c (xref_tag): Don't SET_IDENTIFIER_NAMESPACE_VALUE.
+
 2000-02-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
index 0389234..5a98bcb 100644 (file)
@@ -12351,14 +12351,6 @@ xref_tag (code_type_node, name, globalize)
     }
   else
     {
-      /* If it no longer looks like a nested type, make sure it's
-        in global scope.
-         If it is not an IDENTIFIER, this is not a declaration */
-      if (b->namespace_p && !class_binding_level
-         && TREE_CODE (name) == IDENTIFIER_NODE
-         && IDENTIFIER_NAMESPACE_VALUE (name) == NULL_TREE)
-       SET_IDENTIFIER_NAMESPACE_VALUE (name, TYPE_NAME (ref));
-
       if (!globalize && processing_template_decl && IS_AGGR_TYPE (ref))
        redeclare_class_template (ref, current_template_parms);
     }