From: Mark Mitchell Date: Tue, 3 Nov 1998 22:30:18 +0000 (+0000) Subject: * pt.c (tsubst): Use build_index_type, not build_index_2_type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=120ecb8ab95be2fad5cbe86a46f7885f3db371e2;p=gcc.git * pt.c (tsubst): Use build_index_type, not build_index_2_type. From-SVN: r23516 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index bccf932653d..7228607ec12 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1998-11-03 Mark Mitchell + + * pt.c (tsubst): Use build_index_type, not build_index_2_type. + 1998-11-02 Jason Merrill * class.c (instantiate_type): Be more helpful. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index b25929e1c2e..27882f7c9e7 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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: