https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91556
Mario Baumann <mario-baumann at web dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mario-baumann at web dot de --- Comment #25 from Mario Baumann <mario-baumann at web dot de> --- Hi all, the following fortran code (without module/interface statements) SUBROUTINE FOO (A) IMPLICIT NONE DOUBLE PRECISION :: A(2) DOUBLE PRECISION :: B(2) CALL GOO (A(1)) CALL GOO (B) END returns a similar error: > /Gcc/10.0.0/bin/gfortran -c foo.F foo.F:6:16: 6 | CALL GOO (B) | 1 Error: Rank mismatch in argument '_formal_0' at (1) (scalar and rank-1) > /Gcc/10.0.0/bin/gfortran -v Using built-in specs. COLLECT_GCC=/Gcc/10.0.0/bin/gfortran COLLECT_LTO_WRAPPER=/Gcc/10.0.0/libexec/gcc/x86_64-apple-darwin17/10.0.0/lto-wrapper Target: x86_64-apple-darwin17 Configured with: /Gcc/10.0.0/.src/configure --prefix=/Gcc/10.0.0 --build=x86_64-apple-darwin17 --enable-languages=c,c++,fortran --enable-lto --enable-stage1-checking --enable-libstdcxx-time --disable-nls --disable-libquadmath --disable-libquadmath-support --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-as=/opt/local/bin/as --with-system-zlib --with-pkgversion=svn-revision-275501 Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.0.0 20190909 (experimental) (svn-revision-275501)