https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97592
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:019abe7aa98feae1514c0e51c51fe424e28e2c21 commit r13-8181-g019abe7aa98feae1514c0e51c51fe424e28e2c21 Author: Harald Anlauf <anl...@gmx.de> Date: Sat Dec 16 19:14:55 2023 +0100 Fortran: fix argument passing to CONTIGUOUS,TARGET dummy [PR97592] gcc/fortran/ChangeLog: PR fortran/97592 * trans-expr.cc (gfc_conv_procedure_call): For a contiguous dummy with the TARGET attribute, the effective argument may still be contiguous even if the actual argument is not simply-contiguous. Allow packing to be decided at runtime by _gfortran_internal_pack. gcc/testsuite/ChangeLog: PR fortran/97592 * gfortran.dg/contiguous_15.f90: New test. (cherry picked from commit 5060825aa78b3da036df6437390fd42d094d8f15)