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:
parent
dc724178aa
commit
0228fa7e4e
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue