comment
authorJason Merrill <jason@gcc.gnu.org>
Mon, 23 Feb 1998 12:00:04 +0000 (07:00 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 Feb 1998 12:00:04 +0000 (07:00 -0500)
From-SVN: r18207

gcc/cp/pt.c

index 73a2207e67ed6ae7960508ed9689a880a96d7647..c6d8f183f6acb822180880c2bf7e7ca565d92f2d 100644 (file)
@@ -6080,6 +6080,8 @@ instantiate_decl (d)
   /* Trick tsubst into giving us a new decl in case the template changed.  */
   save_ti = DECL_TEMPLATE_INFO (decl_pattern);
   DECL_TEMPLATE_INFO (decl_pattern) = NULL_TREE;
+  /* decl_pattern has all but one level of template parms bound.  Only pass
+     in that one level of args.  */
   temp = innermost_args (args, DECL_TEMPLATE_SPECIALIZATION (decl_pattern));
   td = tsubst (decl_pattern, temp, tmpl);
   SET_DECL_IMPLICIT_INSTANTIATION (td);