[Bug fortran/85575] Acceptance of invalid code: ordering of declaration statements with implicit typing

juergen.reuter at desy dot de gcc-bugzilla@gcc.gnu.org
Fri May 4 14:41:00 GMT 2018


--- Comment #8 from Jürgen Reuter <juergen.reuter at desy dot de> ---
module foo
 implicit none
  function constr_quark_loopline(ho,sho) result(cl)
    integer, dimension(sho), intent(in) :: ho
    integer, dimension(sho)             :: hor
    integer, intent(in)                 :: sho
    integer                             :: cl
  end function constr_quark_loopline
end module foo

This compiles with gfortran as a GNU extension, but throws an error (only) with
-std=f2008 etc.

More information about the Gcc-bugs mailing list