This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31817] Give at least a warning for specification function without explicit interface
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2007 19:16:47 -0000
- Subject: [Bug fortran/31817] Give at least a warning for specification function without explicit interface
- References: <bug-31817-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-11-08 19:16 -------
I think we already emit the error you'd like (and probably have done so for
quite some time):
$ cat k.f90
function f2 (fn, i)
integer :: i, fn
character (len = fn (i)) :: f2
end function f2
$ gfortran -c k.f90
k.f90:3.20:
character (len = fn (i)) :: f2
1
Error: Function 'fn' at (1) must be PURE
Is there anything more than that?
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31817