* decl2.c (validate_nonmember_using_decl): Allow using templates
authorloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Nov 1998 13:42:29 +0000 (13:42 +0000)
committerloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Nov 1998 13:42:29 +0000 (13:42 +0000)
from the global namespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23742 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl2.c

index a4b51e9..ffeafb1 100644 (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.
index 21ea1c1..79025a5 100644 (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;