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

--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>:

https://gcc.gnu.org/g:361903ad1affd508bafdb9b771d6a6ffc98a2100

commit r15-3707-g361903ad1affd508bafdb9b771d6a6ffc98a2100
Author: Andre Vehreschild <ve...@gcc.gnu.org>
Date:   Fri Aug 23 09:07:09 2024 +0200

    Fix deep copy allocatable components in coarrays. [PR85002]

    Fix code for deep copy of allocatable components in derived type nested
    structures generated, but not inserted when the copy had to be done in
    a coarray.  Additionally fix a comment.

    gcc/fortran/ChangeLog:

            PR fortran/85002
            * trans-array.cc (duplicate_allocatable_coarray): Allow adding
            of deep copy code in the when-allocated case.  Add bounds
            computation before condition, because coarrays need the bounds
            also when not allocated.
            (structure_alloc_comps): Duplication in the coarray case is done
            already, omit it.  Add the deep-code when duplication a coarray.
            * trans-expr.cc (gfc_trans_structure_assign): Fix comment.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/coarray/alloc_comp_9.f90: New test.

Reply via email to