https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122521
--- Comment #15 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:2c2066d4df27d6cd63bed1440607b62a2268e23b commit r17-2545-g2c2066d4df27d6cd63bed1440607b62a2268e23b Author: Mikael Morin <[email protected]> Date: Mon Jul 20 11:08:40 2026 +0200 fortran: array descriptor: Add accessors for the type field [PR122521] Add accessor functions to get or set the value of the type 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 (get_type_field): New function. (gfc_get_descriptor_field): Use it. (gfc_conv_descriptor_type): Make static and rename ... (conv_descriptor_type): ... to this. (gfc_conv_descriptor_type_get, gfc_conv_descriptor_type_set): New functions. * trans-descriptor.h (gfc_conv_descriptor_type): Remove declaration. (gfc_conv_descriptor_type_get, gfc_conv_descriptor_type_set): New declarations. * trans-expr.cc (gfc_conv_gfc_desc_to_cfi_desc): Use gfc_conv_descriptor_type_get to get the value of the type field. * trans-decl.cc (gfc_conv_cfi_to_gfc): Use gfc_conv_descriptor_type_set to set the value of the type field.
