diff options
author | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-08-23 09:07:09 +0200 |
---|---|---|
committer | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-09-19 09:52:23 +0200 |
commit | 361903ad1affd508bafdb9b771d6a6ffc98a2100 (patch) | |
tree | 5b6ceb6472bef3fa21623833de5bc1fe67b47e95 /gcc/tree-vect-loop.cc | |
parent | 08aba2dd8c9390b6131cca0aac069f97eeddc9d2 (diff) | |
download | gcc-361903ad1affd508bafdb9b771d6a6ffc98a2100.zip gcc-361903ad1affd508bafdb9b771d6a6ffc98a2100.tar.gz gcc-361903ad1affd508bafdb9b771d6a6ffc98a2100.tar.bz2 |
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.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions