Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

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

zp3
Beginner
2,421 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
292 Views

Thanks!

0 Kudos
Reply