https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124567
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:bfad1ca316b06aaf7e24a945a9764a80e8e2675b commit r15-11027-gbfad1ca316b06aaf7e24a945a9764a80e8e2675b Author: Harald Anlauf <[email protected]> Date: Tue Mar 24 22:04:29 2026 +0100 Fortran: fix rank/shape check in interface checking [PR124567] PR fortran/124567 gcc/fortran/ChangeLog: * interface.cc (gfc_check_dummy_characteristics): Split shape check into a separate check for rank and a check for shape, taking into account a corner case where the ambiguity between deferred shape and assumed shape has not been fully resolved at the time of checking. gcc/testsuite/ChangeLog: * gfortran.dg/pr124567.f90: New test. * gfortran.dg/proc_decl_30.f90: Likewise. (cherry picked from commit bbc4d2e15c4e5f0b21873d4f8bdf17cdc718f044)
