decl2.c (validate_nonmember_using_decl): Allow using templates from the global namespace.

* decl2.c (validate_nonmember_using_decl): Allow using templates
	from the global namespace.

From-SVN: r23742
This commit is contained in:
Martin v. Löwis 1998-11-21 13:42:29 +00:00 committed by Martin v. Löwis
parent da2128796d
commit 75fbcb7dd5
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1998-11-21 Martin von Löwis <loewis@informatik.hu-berlin.de>
* decl2.c (validate_nonmember_using_decl): Allow using templates
from the global namespace.
1998-11-21 Jason Merrill <jason@yorick.cygnus.com>
Handle specifying template args to member function templates.

View File

@ -4695,7 +4695,8 @@ validate_nonmember_using_decl (decl, scope, name)
*name = TREE_OPERAND (decl, 1);
}
else if (TREE_CODE (decl) == IDENTIFIER_NODE
|| TREE_CODE (decl) == TYPE_DECL)
|| TREE_CODE (decl) == TYPE_DECL
|| TREE_CODE (decl) == TEMPLATE_DECL)
{
*scope = global_namespace;
*name = decl;