diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2005-09-14 05:12:04 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2005-09-14 05:12:04 +0000 |
commit | 0df3cf7f04835666392eb1f8a99d9f4464ad6630 (patch) | |
tree | 3bb7dfd2e701c6bc526ce1a16f27a4b0dcdea0f3 /gcc/fortran/trans-array.c | |
parent | 0120daacbe6fb2d92ab3d3ad654f0e0ec51d86e1 (diff) | |
download | gcc-0df3cf7f04835666392eb1f8a99d9f4464ad6630.zip gcc-0df3cf7f04835666392eb1f8a99d9f4464ad6630.tar.gz gcc-0df3cf7f04835666392eb1f8a99d9f4464ad6630.tar.bz2 |
re PR fortran/19358 ([gfortran] Segfault with missing upper bound)
2005-09-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/19358
* trans-array.c (gfc_trans_dummy_array_bias): correct the typo
which uses dim[i].upper for lbound, rather than dim[i].lower.
2005-09-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/19358
* gfortran.fortran-torture/assumed_dummy_1.f90: New test.
From-SVN: r104259
Diffstat (limited to 'gcc/fortran/trans-array.c')
-rw-r--r-- | gcc/fortran/trans-array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index a72a19d..c284dca 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -3477,7 +3477,7 @@ gfc_trans_dummy_array_bias (gfc_symbol * sym, tree tmpdesc, tree body) if (!INTEGER_CST_P (lbound)) { gfc_init_se (&se, NULL); - gfc_conv_expr_type (&se, sym->as->upper[n], + gfc_conv_expr_type (&se, sym->as->lower[n], gfc_array_index_type); gfc_add_block_to_block (&block, &se.pre); gfc_add_modify_expr (&block, lbound, se.expr); |