https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122521
--- Comment #32 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:444b851178006081d42e272541f251a86a597306 commit r17-4253-g444b851178006081d42e272541f251a86a597306 Author: Mikael Morin <[email protected]> Date: Tue Sep 15 11:28:37 2026 +0200 fortran: array descriptor: Move scalar type extraction to callers [PR122521] The function get_scalar_to_descriptor_type only uses the TREE_TYPE() of its first argument. Make the function take the type directly as argument, moving the TREE_TYPE() access to callers. PR fortran/122521 gcc/fortran/ChangeLog: * trans-expr.cc (get_scalar_to_descriptor_type): Remove argument `scalar'; add argument `scalar_type'. Replace `TREE_TYPE (scalar)' with `scalar_type'. (gfc_conv_scalar_to_descriptor, gfc_conv_derived_to_class, gfc_conv_class_to_class): Only pass the type as argument in callers.
