------- Comment #7 from jv244 at cam dot ac dot uk 2008-09-10 06:48 ------- (In reply to comment #6):
actually, I rather sure that gfortran gets it wrong. This would be a wrong-code MODULE M1 CONTAINS SUBROUTINE S1 write(6,*) "M1 OK" CALL ABORT() END SUBROUTINE END MODULE MODULE M2 USE M1 CONTAINS SUBROUTINE S2 CALL S1() CONTAINS SUBROUTINE S1 write(6,*) "M2 OK" END SUBROUTINE END SUBROUTINE END MODULE USE M2 CALL S2 END -- jv244 at cam dot ac dot uk changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |32834 nThis| | Keywords| |rejects-valid, wrong-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37445