re PR fortran/87336 (wrong output for pointer dummy assiocated to target actual argument)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 18 Sep 2018 17:58:20 +0000 (17:58 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 18 Sep 2018 17:58:20 +0000 (17:58 +0000)
commite8db6cd5fb1ad254329e426dcc8e958c02e2284f
tree84a19f10fa7f398d30f138a265286552df4b586e
parentb819cc44a1a8f0b47f2c9c421980126776d9a8bb
re PR fortran/87336 (wrong output for pointer dummy assiocated to target actual argument)

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.

From-SVN: r264405
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