https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118683
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:b53d19a152cacfb4fcd1abb130d24a1c5dcaef15 commit r14-11261-gb53d19a152cacfb4fcd1abb130d24a1c5dcaef15 Author: Harald Anlauf <anl...@gmx.de> Date: Tue Jan 28 21:21:40 2025 +0100 Fortran: fix passing of component ref to assumed-rank dummy [PR118683] While the fix for pr117774 addressed the passing of an inquiry reference to an assumed-rank dummy, it missed the similar case of passing a component reference. The newer testcase gfortran.dg/pr81978.f90 uncovered this latent issue with a UBSAN instrumented compiler. PR fortran/118683 gcc/fortran/ChangeLog: * trans-expr.cc (gfc_conv_procedure_call): The bounds update for passing to assumed-rank dummies shall also handle component references besides inquiry references. (cherry picked from commit 5d001fa122bf04cfd0611ff7723969a0421b3094)