This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25087] better diagnostic needed
- From: "eedelman at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2005 12:00:12 -0000
- Subject: [Bug fortran/25087] better diagnostic needed
- References: <bug-25087-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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