Commit 75fbcb7d by Martin v. Löwis Committed by Martin v. Löwis

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
parent da212879
1998-11-21 Martin von Lwis <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.
......
......@@ -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;
......
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