[Bug fortran/124567] overriding method not resolved correctly
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 31 20:10:56 GMT 2026
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
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:bfad1ca316b06aaf7e24a945a9764a80e8e2675b
commit r15-11027-gbfad1ca316b06aaf7e24a945a9764a80e8e2675b
Author: Harald Anlauf <anlauf@gmx.de>
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)
More information about the Gcc-bugs
mailing list