aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>1998-02-19 09:38:02 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-02-19 04:38:02 -0500
commit027905b46a074fd0443a6e529f92cbf198ba77b3 (patch)
treeab31b58bd4f961a71f5bb814e9ffd8d2eb7480fb
parent062fa01821c20219a4a18452ed188e53074201f5 (diff)
downloadgcc-027905b46a074fd0443a6e529f92cbf198ba77b3.zip
gcc-027905b46a074fd0443a6e529f92cbf198ba77b3.tar.gz
gcc-027905b46a074fd0443a6e529f92cbf198ba77b3.tar.bz2
* pt.c (unify): Handle TEMPLATE_DECL.
From-SVN: r18117
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/pt.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b12e29e..0c5fff0 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+Thu Feb 19 09:37:21 1998 Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
+
+ * pt.c (unify): Handle TEMPLATE_DECL.
+
1998-02-18 Brendan Kehoe <brendan@cygnus.com>
* cp-tree.h (strip_attrs): Remove decl.
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index e4fa8bb..c048bd6 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -5212,6 +5212,10 @@ unify (tparms, targs, ntparms, parm, arg, nsubsts, strict)
return 1;
return 0;
+ case TEMPLATE_DECL:
+ /* Matched cases are handled by the ARG == PARM test above. */
+ return 1;
+
default:
sorry ("use of `%s' in template type unification",
tree_code_name [(int) TREE_CODE (parm)]);