2018-08-31 Paul Thomas <pault@gcc.gnu.org>
commit5647ea13a638ef0e32b7f1d82fb110530d3525d1
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Aug 2018 06:51:31 +0000 (31 06:51 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Aug 2018 06:51:31 +0000 (31 06:51 +0000)
tree0527c447bb8c74cd2c74bd4f96e460ce137bded9
parent53cd841069ede40c9dfd3ab395dd3e19a368665f
2018-08-31  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/86328
PR fortran/86760
* trans-array.c (gfc_conv_scalarized_array_ref): Do not fix
info->descriptor but pass it directly to gfc_build_array_ref.
(gfc_conv_array_ref): Likewise for se->expr.
* trans.c (gfc_build_array_ref): If 'decl' is a COMPONENT_REF
obtain the span field directly from it.

2018-08-31  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/86328
PR fortran/86760
* gfortran.dg/pr86328.f90 : New test.
in comment 12 of the PR.
* gfortran.dg/pr86760.f90 : New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264008 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr86328.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr86760.f90 [new file with mode: 0644]