https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122521
--- Comment #29 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:0a319625f6f525b85125c8d295be799d391c33c1 commit r17-3734-g0a319625f6f525b85125c8d295be799d391c33c1 Author: Mikael Morin <[email protected]> Date: Fri Aug 28 10:28:14 2026 +0200 fortran: array descriptor: Move default descriptor initialization [PR122521] Array allocatable local variables have their descriptor data pointer set to null on function entry to represent their unallocated initial status. The dtype of allocatable and pointer arrays is also set on entry. Move the code generating those default initializations of array descriptors to its own function in trans-descriptor.cc. PR fortran/122521 gcc/fortran/ChangeLog: * trans-array.cc (gfc_trans_deferred_array): Move default descriptor initialization... * trans-descriptor.cc (gfc_init_descriptor_variable): ... here as a new function. * trans-descriptor.h (gfc_init_descriptor_variable): New declaration.
