This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/37445] Host-associated proc not found if same-name generic is use-associated



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]