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/31817] Give at least a warning for specification function without explicit interface



------- 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


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