[Bug fortran/84115] [8 Regression] Failure in associate construct with concatenated character target

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 17 11:13:00 GMT 2018


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

--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sat Feb 17 11:07:32 2018
New Revision: 257781

URL: https://gcc.gnu.org/viewcvs?rev=257781&root=gcc&view=rev
Log:
2018-02-17  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/84115
        * resolve.c (resolve_assoc_var): If a non-constant target expr.
        has no string length expression, make the associate variable
        into a deferred length, allocatable symbol.
        * trans-decl.c (gfc_is_reallocatable_lhs): Add and use a ptr to
        the symbol.
        * trans-stmt.c (trans_associate_var): Null and free scalar
        associate names that are allocatable. After assignment, remove
        the allocatable attribute to prevent reallocation.

2018-02-17  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/84115
        * gfortran.dg/associate_35.f90: Remove error, add stop n's and
        change to run.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/primary.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/associate_35.f90


More information about the Gcc-bugs mailing list