https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86328
--- Comment #15 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Sep 1 08:11:34 2018 New Revision: 264027 URL: https://gcc.gnu.org/viewcvs?rev=264027&root=gcc&view=rev Log: 2018-09-01 Paul Thomas <pa...@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-09-01 Paul Thomas <pa...@gcc.gnu.org> PR fortran/86328 PR fortran/86760 * gfortran.dg/pr86328.f90 : New test. * gfortran.dg/pr86760.f90 : New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr86328.f90 branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr86760.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/trans-array.c branches/gcc-8-branch/gcc/fortran/trans.c branches/gcc-8-branch/gcc/testsuite/ChangeLog