https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122521
--- Comment #23 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:6478a120d13470133eea0146eeed7d0e5060910a commit r17-3698-g6478a120d13470133eea0146eeed7d0e5060910a Author: Mikael Morin <[email protected]> Date: Thu Aug 27 11:49:11 2026 +0200 fortran: array descriptor: Move dtype constructor generation [PR122521] The final sequence of trans-types.cc's `gfc_get_dtype_rank_type' generates a constructor for an array descriptor dtype. Move that sequence to a dedicated function in trans-descriptor.cc to avoid leaking the content and layout of the dtypes out of that file. PR fortran/122521 gcc/fortran/ChangeLog: * trans-types.cc (gfc_get_dtype_rank_type): Move constructor generation ... * trans-descriptor.cc (gfc_build_dtype_constructor): ... here as a new function. * trans-descriptor.h (gfc_build_dtype_constructor): New declaration.
