diff options
author | Martin v. Löwis <loewis@informatik.hu-berlin.de> | 1998-11-21 13:42:29 +0000 |
---|---|---|
committer | Martin v. Löwis <loewis@gcc.gnu.org> | 1998-11-21 13:42:29 +0000 |
commit | 75fbcb7dd506a1428d56c8573493b2ad47847b18 (patch) | |
tree | f52af511933ff9beb56856961f8b55be57c4a100 | |
parent | da2128796defa22a63ffe387206c9d480910b13a (diff) | |
download | gcc-75fbcb7dd506a1428d56c8573493b2ad47847b18.zip gcc-75fbcb7dd506a1428d56c8573493b2ad47847b18.tar.gz gcc-75fbcb7dd506a1428d56c8573493b2ad47847b18.tar.bz2 |
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
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 3 |
2 files changed, 7 insertions, 1 deletions
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 <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 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; |