]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Ensure deep copy of allocatable components in cylic types [PR114612]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 13 Dec 2024 11:07:01 +0000 (12:07 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 7 Jan 2025 11:53:52 +0000 (12:53 +0100)
commit25b380dc63cc7202ed1c7f2048994c3820a96fcd
treec641e854f10f73f45996a02ee7a7d086b8e3097e
parent61400b669688848dc764d946a4d16fb51a27e286
Fortran: Ensure deep copy of allocatable components in cylic types [PR114612]

gcc/fortran/ChangeLog:

PR fortran/114612

* trans-array.cc (structure_alloc_comps): Ensure deep copy is
also done for types having cycles.

gcc/testsuite/ChangeLog:

* gfortran.dg/alloc_comp_deep_copy_4.f03: New test.
gcc/fortran/trans-array.cc
gcc/testsuite/gfortran.dg/alloc_comp_deep_copy_4.f03 [new file with mode: 0644]