https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122521
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Mikael Morin <[email protected]>: https://gcc.gnu.org/g:9b1bbecafdb05e9a33c05f1df651c2ce001167b1 commit r17-2543-g9b1bbecafdb05e9a33c05f1df651c2ce001167b1 Author: Mikael Morin <[email protected]> Date: Mon Jul 20 11:08:15 2026 +0200 fortran: array descriptor: Add accessors for the version field [PR122521] Add accessor functions to get or set the value of the version field of array descriptors, and remove from the public API the function giving direct acces to the field. PR fortran/122521 gcc/fortran/ChangeLog: * trans-descriptor.cc (gfc_conv_descriptor_version): Make static and rename ... (conv_descriptor_version): ... to this. (gfc_conv_descriptor_version_get, gfc_conv_descriptor_version_set): New functions. * trans-descriptor.h (gfc_conv_descriptor_version): Remove declaration. (gfc_conv_descriptor_version_get, gfc_conv_descriptor_version_set): New declarations. * trans.cc (gfc_deallocate_with_status): Use gfc_conv_descriptor_version_get to get the value of the version field, and gfc_conv_descriptor_version_set to set it. * trans-array.cc (gfc_array_allocate, structure_alloc_comps, gfc_alloc_allocatable_for_assignment): Likewise.
