summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-21 13:42:29 +0000
committerloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-21 13:42:29 +0000
commit7e2edc7a868872185ef42f7a966aa7612b9e1b45 (patch)
treef52af511933ff9beb56856961f8b55be57c4a100 /gcc/cp
parentdc1fa59799b2292c14d52273b59225ddc11a5124 (diff)
downloadgcc-7e2edc7a868872185ef42f7a966aa7612b9e1b45.tar.gz
* decl2.c (validate_nonmember_using_decl): Allow using templates
from the global namespace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23742 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl2.c3
2 files changed, 7 insertions, 1 deletions
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 <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.
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;