* pt.c (tsubst): Use build_index_type, not build_index_2_type.

From-SVN: r23516
This commit is contained in:
Mark Mitchell 1998-11-03 22:30:18 +00:00 committed by Mark Mitchell
parent ab2e338610
commit 120ecb8ab9
2 changed files with 5 additions and 1 deletions

View 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.

View 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: