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

--- Comment #9 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sat May 16 08:09:52 2015
New Revision: 223234

URL: https://gcc.gnu.org/viewcvs?rev=223234&root=gcc&view=rev
Log:
2015-05-16  Mikael Morin  <mik...@gcc.gnu.org
            Paul Thomas  <pa...@gcc.gnu.org>

        PR fortran/65792
        * trans-expr.c (gfc_trans_subcomponent_assign): Always assign
        the expression component to the destination. In addition, if
        the component has allocatable components, copy them and
        deallocate those of the expression, if it is not a variable.
        The expression is fixed if not a variable to prevent multiple
        evaluations.

2015-05-16  Mikael Morin  <mik...@gcc.gnu.org>

        PR fortran/65792
        * gfortran.dg/derived_constructor_components_5: New test

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

Reply via email to