This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30883] procedure with dummy procedure f1 rejected with implicit none
- From: "burnus 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 Feb 2007 14:01:02 -0000
- Subject: [Bug fortran/30883] procedure with dummy procedure f1 rejected with implicit none
- References: <bug-30883-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2007-02-20 14:01 -------
gfortran rejects the procedure with:
SUBROUTINE S1(F1)
1
Error: Symbol 'f1' at (1) has no IMPLICIT type
The error goes away when the return value of f1 has a type, e.g.
INTERFACE
FUNCTION F1()
real :: f1
END FUNCTION F1
END INTERFACE
Thus it boils down to the question: Is it allowed to have dummy procedure which
unknown return type, if IMPLICIT NONE is specified?
NAG f95, g95 and ifort compile it without any error.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu dot
| |org
Keywords| |rejects-valid
Summary|incorrect error message for |procedure with dummy
|valid code |procedure f1 rejected with
| |implicit none
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30883