https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49636
--- Comment #13 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sun May 20 11:07:44 2018 New Revision: 260418 URL: https://gcc.gnu.org/viewcvs?rev=260418&root=gcc&view=rev Log: 2018-05-20 Paul Thomas <pa...@gcc.gnu.org> PR fortran/49636 Backport from trunk * trans-array.c (gfc_get_array_span): Renamed from 'get_array_span'. (gfc_conv_expr_descriptor): Change references to above. * trans-array.h : Add prototype for 'gfc_get_array_span'. * trans-stmt.c (trans_associate_var): If the associate name is a subref array pointer, use gfc_get_array_span for the span. 2018-05-20 Paul Thomas <pa...@gcc.gnu.org> PR fortran/49636 Backport from trunk * gfortran.dg/associate_38.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/associate_38.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-array.h branches/gcc-8-branch/gcc/fortran/trans-stmt.c branches/gcc-8-branch/gcc/testsuite/ChangeLog