The following provokes the summary, must be compiled and run: module m1 contains subroutine sub(pvec) dimension :: pvec(5) print *,'good compiler!' end subroutine end module m2 contains subroutine submain use m1 dimension :: qvec(5) call sub(qvec) ! here must call sub in module m1 end subroutine c subroutine sub(scal) ! if uncommented complains rank mismatch subroutine sub(vec) ! this one is mistakenly called dimension :: vec(5) print *,'bad compiler!' end subroutine end use m2 call submain end
Best regards Vittorio Zecca -- Summary: gfortran gets confused by synonymous procedure names Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zeccav at gmail dot com GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44360