[Bug fortran/122521] Use more high level internal API to manipulate array descriptors
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 28 08:30:56 GMT 2026
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 <mikael@gcc.gnu.org>:
https://gcc.gnu.org/g:0a319625f6f525b85125c8d295be799d391c33c1
commit r17-3734-g0a319625f6f525b85125c8d295be799d391c33c1
Author: Mikael Morin <mikael@gcc.gnu.org>
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.
More information about the Gcc-bugs
mailing list