This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/49636] [F03] ASSOCIATE construct confused with slightly complicated case


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49636

--- Comment #12 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun May 20 10:04:46 2018
New Revision: 260414

URL: https://gcc.gnu.org/viewcvs?rev=260414&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/associate_38.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]