diff options
author | Mark Mitchell <mark@markmitchell.com> | 1998-11-03 22:30:18 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-11-03 22:30:18 +0000 |
commit | 120ecb8ab95be2fad5cbe86a46f7885f3db371e2 (patch) | |
tree | 3f461f6c8ca5c3af63a708dca55d22be802c37ab /gcc | |
parent | ab2e338610ba875afce247a4c8c417bafe01c89e (diff) | |
download | gcc-120ecb8ab95be2fad5cbe86a46f7885f3db371e2.zip gcc-120ecb8ab95be2fad5cbe86a46f7885f3db371e2.tar.gz gcc-120ecb8ab95be2fad5cbe86a46f7885f3db371e2.tar.bz2 |
* pt.c (tsubst): Use build_index_type, not build_index_2_type.
From-SVN: r23516
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/pt.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index bccf932..7228607 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index b25929e..27882f7 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: |