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]

(C++) namespace tweak


This code doesn't appear to do anything useful, and it breaks
g++.ns/type1.C.  I suspect that the problem it was addressing was
fixed well before the namespace code went in...

2000-02-15  Jason Merrill  <jason@casey.cygnus.com>

	* decl.c (xref_tag): Don't SET_IDENTIFIER_NAMESPACE_VALUE.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.543
diff -c -p -r1.543 decl.c
*** decl.c	2000/02/07 23:41:01	1.543
--- decl.c	2000/02/16 21:03:23
*************** xref_tag (code_type_node, name, globaliz
*** 12351,12364 ****
      }
    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);
      }
--- 12351,12356 ----

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