decl2.c (do_toplevel_using_decl): When decl is a TYPE_DECL, treat it as using ::decl.

* decl2.c (do_toplevel_using_decl): When decl is a TYPE_DECL,
	treat it as using ::decl.

From-SVN: r20221
This commit is contained in:
Martin v. Löwis 1998-06-03 22:13:29 -04:00 committed by Jason Merrill
parent dc724178aa
commit 0228fa7e4e
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,10 @@
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.

View File

@ -4395,7 +4395,8 @@ do_toplevel_using_decl (decl)
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;