[Bug fortran/56386] [F03] ICE with ASSOCIATE construct and an derived type array component

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 27 18:02:00 GMT 2019


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

--- Comment #14 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Jan 27 18:02:17 2019
New Revision: 268313

URL: https://gcc.gnu.org/viewcvs?rev=268313&root=gcc&view=rev
Log:
2019-01-27  Paul Thomas  <pault@gcc.gnu.org>

        Backport from trunk
        PR fortran/56386
        PR fortran/58906
        PR fortran/77385
        PR fortran/80260
        PR fortran/82077
        * resolve.c (resolve_variable): Fix up expressions with array
        associate names, where the parser did not detect that this is
        array and there was no array part_ref in the expression.
        * trans-expr.c (gfc_find_and_cut_at_last_class_ref): base_expr
        should be a copy of e and not the initialization expr.

2019-01-27  Paul Thomas  <pault@gcc.gnu.org>

        Backport from trunk
        PR fortran/56386
        PR fortran/58906
        PR fortran/77385
        * gfortran.dg/associate_44.f90 : New test.

        PR fortran/80260
        * gfortran.dg/select_type_45.f90 : New test.

        PR fortran/82077
        * gfortran.dg/select_type_46.f90 : New test.


Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/associate_44.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/select_type_45.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/select_type_46.f90
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/resolve.c
    branches/gcc-8-branch/gcc/fortran/trans-expr.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list