diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2016-01-10 12:56:28 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2016-01-10 12:56:28 +0000 |
commit | 4f90ee6c7780cab416adee0830074c9a315206d0 (patch) | |
tree | 8db8d7d0db37f77d9cc1bcaaff023ba63e0748a2 /gcc/fortran/trans-array.c | |
parent | 3907c6cf931af4e874cb217addd29b24063b6367 (diff) | |
download | gcc-4f90ee6c7780cab416adee0830074c9a315206d0.zip gcc-4f90ee6c7780cab416adee0830074c9a315206d0.tar.gz gcc-4f90ee6c7780cab416adee0830074c9a315206d0.tar.bz2 |
re PR fortran/67779 (Strange ordering with strings in extended object)
2016-01-10 Paul Thomas <pault@gcc.gnu.org>
PR fortran/67779
* trans_array.c (gfc_conv_scalarized_array_ref): Add missing
se->use_offset from condition for calculation of 'base'.
2016-01-10 Paul Thomas <pault@gcc.gnu.org>
PR fortran/67779
* gfortran.dg/actual_array_offset_1: New test.
From-SVN: r232200
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 1c3768e..a46f103 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -7114,7 +7114,7 @@ gfc_conv_expr_descriptor (gfc_se *se, gfc_expr *expr) gfc_array_index_type, stride, info->stride[n]); - if (se->direct_byref + if ((se->direct_byref || se->use_offset) && ((info->ref && info->ref->u.ar.type != AR_FULL) || (expr->expr_type == EXPR_ARRAY && se->use_offset))) { |