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

--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Tue Sep 18 19:35:53 2018
New Revision: 264409

URL: https://gcc.gnu.org/viewcvs?rev=264409&root=gcc&view=rev
Log:
2018-09-18  Paul Thomas  <pa...@gcc.gnu.org>

        PR fortran/87239
        * trans-expr.c (gfc_trans_assignment_1): The rse.pre for the
        assignment of deferred character elemental function results to
        a realocatable lhs must not be added to the exterior block but
        must go to the loop body.

2018-09-18  Paul Thomas  <pa...@gcc.gnu.org>

        PR fortran/87239
        * gfortran.dg/elemental_function_2.f90 : New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/elemental_function_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to