* pt.c (tsubst): Use build_index_type, not build_index_2_type.
authorMark Mitchell <mark@markmitchell.com>
Tue, 3 Nov 1998 22:30:18 +0000 (22:30 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 3 Nov 1998 22:30:18 +0000 (22:30 +0000)
From-SVN: r23516

gcc/cp/ChangeLog
gcc/cp/pt.c

index bccf932653dc397d6ee826ba283da986f9f68237..7228607ec126a601b44e874c6db4bdff193563cc 100644 (file)
@@ -1,3 +1,7 @@
+1998-11-03  Mark Mitchell  <mark@markmitchell.com>
+
+       * pt.c (tsubst): Use build_index_type, not build_index_2_type.
+
 1998-11-02  Jason Merrill  <jason@yorick.cygnus.com>
 
        * class.c (instantiate_type): Be more helpful.
index b25929e1c2eccaef0b308d4b4c2a04274c72279b..27882f7c9e7ac4b19d1fe85237398eb35889cc8f 100644 (file)
@@ -5542,7 +5542,7 @@ tsubst (t, args, in_decl)
          }
 
        max = fold (build_binary_op (MINUS_EXPR, max, integer_one_node, 1));
-       return build_index_2_type (size_zero_node, max);
+       return build_index_type (max);
       }
 
     case TEMPLATE_TYPE_PARM: