re PR fortran/49636 ([F03] ASSOCIATE construct confused with slightly complicated...
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 20 May 2018 10:04:46 +0000 (10:04 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 20 May 2018 10:04:46 +0000 (10:04 +0000)
commitf82f425b56a1ccf1950c6d0992e7c106558acba0
tree1979e22abd5e448cee201ee6e3e3f4b88d8e102f
parent7c71e79664fbc04c3eb1d8b0307b33e502488664
re PR fortran/49636 ([F03] ASSOCIATE construct confused with slightly complicated case)

2018-05-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/49636
* 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  <pault@gcc.gnu.org>

PR fortran/49636
* gfortran.dg/associate_38.f90: New test.

From-SVN: r260414
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-array.h
gcc/fortran/trans-intrinsic.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associate_38.f90 [new file with mode: 0644]