2018-09-18 Paul Thomas <pault@gcc.gnu.org>
commit8c56c0b5e9ef2871532e8a6de342356c0209fd33
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Sep 2018 17:58:20 +0000 (18 17:58 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Sep 2018 17:58:20 +0000 (18 17:58 +0000)
tree84a19f10fa7f398d30f138a265286552df4b586e
parentbdc1bac001dfce637a6704d37663f41229cc0e33
2018-09-18  Paul Thomas  <pault@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  <pault@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.

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