diff options
author | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-09-19 15:09:52 +0200 |
---|---|---|
committer | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-09-24 13:15:37 +0200 |
commit | f5035d7d015ebd4a7f5df5831cfc1269f9567e06 (patch) | |
tree | 5eb7f5d1241a9e18d971de5d55da4b7eaa2f07e6 /gcc/cp/contracts.cc | |
parent | 9a795b3a5b6a0d8b4b4f38a66ab9782aabead92e (diff) | |
download | gcc-f5035d7d015ebd4a7f5df5831cfc1269f9567e06.zip gcc-f5035d7d015ebd4a7f5df5831cfc1269f9567e06.tar.gz gcc-f5035d7d015ebd4a7f5df5831cfc1269f9567e06.tar.bz2 |
Fortran: Assign allocated caf-memory to scalar members [PR84870]
Allocating a coarray required an array-descriptor. For scalars a
temporary descriptor was created. Assigning the allocated memory from
the temporary descriptor back to the scalar is now added.
gcc/fortran/ChangeLog:
PR fortran/84870
* trans-array.cc (duplicate_allocatable_coarray): For scalar
allocatable components the memory allocated is now assigned to
the component's pointer.
gcc/testsuite/ChangeLog:
* gfortran.dg/coarray/alloc_comp_10.f90: New test.
Diffstat (limited to 'gcc/cp/contracts.cc')
0 files changed, 0 insertions, 0 deletions