This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33116] External functions can be called as subroutine
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2007 03:59:29 -0000
- Subject: [Bug fortran/33116] External functions can be called as subroutine
- References: <bug-33116-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pault at gcc dot gnu dot org 2007-08-20 03:59 -------
Tobias,
EXTERNAL foo
REAL foo
CALL foo() ! <- wrong
END
with 4.3.0 20070815, gfc gives:
test.f90:1.14:
EXTERNAL foo
1
test.f90:3.23:
CALL foo() ! <- wrong
2
Error: 'foo' at (1) has a type, which is not consistent with the CALL at (2)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33116