This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37445] Host-associated proc not found if same-name generic is use-associated
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2008 06:48:08 -0000
- Subject: [Bug fortran/37445] Host-associated proc not found if same-name generic is use-associated
- References: <bug-37445-15125@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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