Commit 0228fa7e by Martin v. Löwis Committed by Jason Merrill

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
parent dc724178
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
1998-06-04 Martin von Lwis <loewis@informatik.hu-berlin.de> 1998-06-04 Martin von Lwis <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. * decl2.c (arg_assoc_type): Process unknown_type_node and OFFSET_TYPE.
* tree.c (mapcar): Support NEW_EXPR. * tree.c (mapcar): Support NEW_EXPR.
......
...@@ -4395,7 +4395,8 @@ do_toplevel_using_decl (decl) ...@@ -4395,7 +4395,8 @@ do_toplevel_using_decl (decl)
scope = TREE_OPERAND (decl, 0); scope = TREE_OPERAND (decl, 0);
name = TREE_OPERAND (decl, 1); 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; scope = global_namespace;
name = decl; name = decl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment