diff options
author | Richard Guenther <rguenther@suse.de> | 2010-04-22 08:34:41 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-04-22 08:34:41 +0000 |
commit | 92375a2020b1f32bf7be92025493cebd9b3b4400 (patch) | |
tree | 3b644ac3468bdfc3f3d146ccfd9417222f96a056 /gcc/fortran/trans-array.c | |
parent | c334c130bd67d51f03327e14a05ca4ba6b38be20 (diff) | |
download | gcc-92375a2020b1f32bf7be92025493cebd9b3b4400.zip gcc-92375a2020b1f32bf7be92025493cebd9b3b4400.tar.gz gcc-92375a2020b1f32bf7be92025493cebd9b3b4400.tar.bz2 |
re PR fortran/43829 (Scalarization of reductions)
2010-04-22 Richard Guenther <rguenther@suse.de>
PR fortran/43829
* resolve.c (gfc_resolve_index): Wrap around ...
(gfc_resolve_index_1): ... this. Add parameter to allow
any integer kind index type.
(resolve_array_ref): Allow any integer kind for the start
index of an array ref.
* gfortran.dg/vector_subscript_6.f90: New testcase.
* gfortran.dg/assign_10.f90: Adjust.
From-SVN: r158632
Diffstat (limited to 'gcc/fortran/trans-array.c')
-rw-r--r-- | gcc/fortran/trans-array.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index b03cc94..199eb23 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -2434,6 +2434,7 @@ gfc_conv_array_index_offset (gfc_se * se, gfc_ss_info * info, int dim, int i, gfc_conv_array_data (desc)); index = gfc_build_array_ref (data, index, NULL); index = gfc_evaluate_now (index, &se->pre); + index = fold_convert (gfc_array_index_type, index); /* Do any bounds checking on the final info->descriptor index. */ index = gfc_trans_array_bound_check (se, info->descriptor, |