]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix rank/shape check in interface checking [PR124567]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 24 Mar 2026 21:04:29 +0000 (22:04 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 25 Mar 2026 19:45:29 +0000 (20:45 +0100)
commitbbc4d2e15c4e5f0b21873d4f8bdf17cdc718f044
tree19a398abd87ecba8ebc8ef4f885c323d75bea794
parent476d61a8cb28b627f99500a30ccd11e36ade0a72
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.
gcc/fortran/interface.cc
gcc/testsuite/gfortran.dg/pr124567.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/proc_decl_30.f90 [new file with mode: 0644]