[Patch, fortran] PR 49636 - [F03] ASSOCIATE construct confused with slightly complicated case

Paul Richard Thomas paul.richard.thomas@gmail.com
Sat May 19 15:50:00 GMT 2018


This patch is a straightforward recycling of existing code to replace
an incomplete copy elsewhere.

Bootstraps and regtests on FC27/x86_64 - OK for trunk down to 7-branch?

Paul

2018-05-19  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-19  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/49636
    * gfortran.dg/associate_38.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 3911 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180519/fbab825f/attachment.bin>


More information about the Gcc-patches mailing list