* pt.c (tsubst): Use build_index_type, not build_index_2_type.
From-SVN: r23516
This commit is contained in:
parent
ab2e338610
commit
120ecb8ab9
@ -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.
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user