Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

catastrophic error using automatic arrays in module procedure declarations (in interface block)

zp3
Beginner
2,307 Views

Hi I'm getting a catastrophic error when trying something like this:

module foo_mod
    ...
    interface
        ...
        module subroutine foo(lb,v)
            integer(IK), intent(in) :: lb
            real(RK), intent(inout) :: v(lb,:)
        end subroutine foo
        ...
    end interface
    ...
  contains
    ...
    module procedure foo
        ...
    end procedure foo
    ...
end module foo_mod

I'm using ifort 16.0 beta. This problem looks somehow critical to me because the method above seems to be the only way to pass the lower bound of an array slice from a caller to a subroutine.

Thanks!

0 Kudos
21 Replies
zp3
Beginner
277 Views

Thanks!

0 Kudos
Reply