* decl2.c (do_toplevel_using_decl): When decl is a TYPE_DECL,
treat it as using ::decl.
From-SVN: r20221
1998-06-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
+ Suggested by Brendan Kehoe
+ * decl2.c (do_toplevel_using_decl): When decl is a TYPE_DECL,
+ treat it as using ::decl.
+
* decl2.c (arg_assoc_type): Process unknown_type_node and OFFSET_TYPE.
* tree.c (mapcar): Support NEW_EXPR.
scope = TREE_OPERAND (decl, 0);
name = TREE_OPERAND (decl, 1);
}
- else if (TREE_CODE (decl) == IDENTIFIER_NODE)
+ else if (TREE_CODE (decl) == IDENTIFIER_NODE
+ || TREE_CODE (decl) == TYPE_DECL)
{
scope = global_namespace;
name = decl;