https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87336
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Tue Sep 18 17:58:20 2018 New Revision: 264405 URL: https://gcc.gnu.org/viewcvs?rev=264405&root=gcc&view=rev Log: 2018-09-18 Paul Thomas <pa...@gcc.gnu.org> PR fortran/87336 * trans-array.c (gfc_get_array_span): Try to get the element length of incomplete types. Return NULL_TREE otherwise. (gfc_conv_expr_descriptor): Only set the 'span' field if the above does not return NULL_TREE. Set 'span' field if possible for all new descriptors. 2018-09-18 Paul Thomas <pa...@gcc.gnu.org> PR fortran/87336 * gfortran.dg/pointer_array_10.f90 : New test. * gfortran.dg/assign_10.f90 : Increase 'parm' count to 20. * gfortran.dg/transpose_optimization_2.f90 : Increase 'parm' count to 72. Added: trunk/gcc/testsuite/gfortran.dg/pointer_array_10.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-array.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/assign_10.f90 trunk/gcc/testsuite/gfortran.dg/transpose_optimization_2.f90