From: Martin v. Löwis Date: Sat, 21 Nov 1998 13:42:29 +0000 (+0000) Subject: decl2.c (validate_nonmember_using_decl): Allow using templates from the global namespace. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75fbcb7dd506a1428d56c8573493b2ad47847b18;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a4b51e9f840..ffeafb15761 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-11-21 Martin von Löwis + + * decl2.c (validate_nonmember_using_decl): Allow using templates + from the global namespace. + 1998-11-21 Jason Merrill Handle specifying template args to member function templates. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 21ea1c1226e..79025a5a517 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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;