pt.c (tsubst): Decrease the template-level of TEMPLATE_TEMPLATE_PARMS.
authorMark Mitchell <mmitchell@usa.net>
Wed, 22 Apr 1998 21:02:01 +0000 (21:02 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 22 Apr 1998 21:02:01 +0000 (21:02 +0000)
commitdb2767b644667cdb0beefc7c98c643e605512405
tree9f38d9c184acc8ee76a7f015f6616c5329af210d
parent693e265fc07aa9119906a3ed03318599ae6b5bc5
pt.c (tsubst): Decrease the template-level of TEMPLATE_TEMPLATE_PARMS.

 * pt.c (tsubst): Decrease the template-level of
 TEMPLATE_TEMPLATE_PARMS.  Likewise for the DECL_INITIAL of a
 TEMPLATE_PARM_INDEX.
 (template_decl_level): New function.
 (unify): Make sure to record unifications for template
 parameters, even when the parameters exactly match the arguments.
 Combine duplicated code for TEMPLATE_TEMPLATE_PARMs and
 TEMPLATE_TYPE_PARMS.  Don't try to unify template parameters that
 aren't from the level we're currently working on.

From-SVN: r19378
gcc/cp/ChangeLog
gcc/cp/pt.c