Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

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

$
0
0

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!


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>