From 75fbcb7dd506a1428d56c8573493b2ad47847b18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 21 Nov 1998 13:42:29 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl2.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a4b51e9..ffeafb1 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 21ea1c1..79025a5 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; -- 2.7.4