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

Reply via email to