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:
parent
da2128796d
commit
75fbcb7dd5
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user