https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122521
--- Comment #30 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Mikael Morin <[email protected]>: https://gcc.gnu.org/g:9d55126b9c44d6373de71960f1780ee2918f1efe commit r17-3735-g9d55126b9c44d6373de71960f1780ee2918f1efe Author: Mikael Morin <[email protected]> Date: Fri Aug 28 10:28:16 2026 +0200 fortran: array descriptor: Move unallocated library result init [PR122521] When the result of a non-inlined intrinsic function is used in a reallocating assignment, a fresh unallocated array descriptor is created for passing as function result to the library function. Move the code that creates that fresh descriptor to its own function in trans-descriptor.cc. PR fortran/122521 gcc/fortran/ChangeLog: * trans-expr.cc (fcncall_realloc_result): Move descriptor creation and initialization... * trans-descriptor.cc (gfc_create_unallocated_library_result_descriptor): ... here as a new function. * trans-descriptor.h (gfc_create_unallocated_library_result_descriptor): New declaration.
