(C++) namespace tweak
Jason Merrill
jason@cygnus.com
Wed Feb 16 13:05:00 GMT 2000
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 ----
More information about the Gcc-patches
mailing list