https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84870
--- Comment #11 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:f5035d7d015ebd4a7f5df5831cfc1269f9567e06 commit r15-3825-gf5035d7d015ebd4a7f5df5831cfc1269f9567e06 Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Thu Sep 19 15:09:52 2024 +0200 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.