https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120743
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:5bc92717b804483a17dd5095f8b6d4fd75a472b1 commit r16-1658-g5bc92717b804483a17dd5095f8b6d4fd75a472b1 Author: Harald Anlauf <anl...@gmx.de> Date: Tue Jun 24 20:46:38 2025 +0200 Fortran: fix ICE in verify_gimple_in_seq with substrings [PR120743] PR fortran/120743 gcc/fortran/ChangeLog: * trans-expr.cc (gfc_conv_substring): Substring indices are of type gfc_charlen_type_node. Convert to size_type_node for pointer arithmetic only after offset adjustments have been made. gcc/testsuite/ChangeLog: * gfortran.dg/pr120743.f90: New test. Co-authored-by: Jerry DeLisle <jvdeli...@gcc.gnu.org> Co-authored-by: Mikael Morin <mik...@gcc.gnu.org>