Commit 39ee4d93 by Martin v. Löwis Committed by Martin v. Löwis

decl2.c (validate_nonmember_using_decl): Fix using-directives of std if std is ignored.

        * decl2.c (validate_nonmember_using_decl): Fix using-directives of
        std if std is ignored.

From-SVN: r23162
parent 820fcad8
1998-10-18 Martin von Lwis <loewis@informatik.hu-berlin.de>
* decl2.c (validate_nonmember_using_decl): Fix using-directives of
std if std is ignored.
1998-10-18 Jason Merrill <jason@yorick.cygnus.com> 1998-10-18 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokvardecl): Fix thinko. * decl.c (grokvardecl): Fix thinko.
......
...@@ -4664,8 +4664,11 @@ validate_nonmember_using_decl (decl, scope, name) ...@@ -4664,8 +4664,11 @@ validate_nonmember_using_decl (decl, scope, name)
{ {
if (TREE_CODE (decl) == SCOPE_REF if (TREE_CODE (decl) == SCOPE_REF
&& TREE_OPERAND (decl, 0) == std_node) && TREE_OPERAND (decl, 0) == std_node)
return NULL_TREE; {
if (TREE_CODE (decl) == SCOPE_REF) *scope = global_namespace;
*name = TREE_OPERAND (decl, 1);
}
else if (TREE_CODE (decl) == SCOPE_REF)
{ {
*scope = TREE_OPERAND (decl, 0); *scope = TREE_OPERAND (decl, 0);
*name = TREE_OPERAND (decl, 1); *name = TREE_OPERAND (decl, 1);
......
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