Commit 027905b4 by Kriang Lerdsuwanakij Committed by Jason Merrill

* pt.c (unify): Handle TEMPLATE_DECL.

From-SVN: r18117
parent 062fa018
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> 1998-02-18 Brendan Kehoe <brendan@cygnus.com>
* cp-tree.h (strip_attrs): Remove decl. * cp-tree.h (strip_attrs): Remove decl.
......
...@@ -5212,6 +5212,10 @@ unify (tparms, targs, ntparms, parm, arg, nsubsts, strict) ...@@ -5212,6 +5212,10 @@ unify (tparms, targs, ntparms, parm, arg, nsubsts, strict)
return 1; return 1;
return 0; return 0;
case TEMPLATE_DECL:
/* Matched cases are handled by the ARG == PARM test above. */
return 1;
default: default:
sorry ("use of `%s' in template type unification", sorry ("use of `%s' in template type unification",
tree_code_name [(int) TREE_CODE (parm)]); tree_code_name [(int) TREE_CODE (parm)]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment