decl2.c (validate_nonmember_using_decl): Allow using templates from the global namespace.
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>
Sat, 21 Nov 1998 13:42:29 +0000 (13:42 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Sat, 21 Nov 1998 13:42:29 +0000 (13:42 +0000)
* decl2.c (validate_nonmember_using_decl): Allow using templates
from the global namespace.

From-SVN: r23742

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

index a4b51e9f8401dbf2af8588af709bfb16876d97b4..ffeafb1576193170cf9725d15ba40783e1b25d7d 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 21ea1c1226e9b0f7b1b076b446eef7993ea07e03..79025a5a5173a855824e6f3fc9678a3b4079066b 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;