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/25087] better diagnostic needed



------- Comment #2 from eedelman at gcc dot gnu dot org  2005-11-29 12:00 -------
Reduced testcase:

SUBROUTINE s(n)
 CHARACTER(LEN=n), EXTERNAL :: a
 write(6,*) a(n)
END SUBROUTINE s

The problem, unless I'm missing something, is that the external function a
would need an explicit interface. From the draft F2003 standard, 12.3.1.1:

"A procedure [...] shall have an explicit interface if it is referenced and


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25087


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