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 have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

Bounds of allocatable arrays

Intel_C_Intel
Employee
359 Views

(8): Error: If dummy arg is allocatable, actual arg must be a whole array and not a section.

If Arr will be in DLL but I will lie the interface of Arr like:

Code:
Interface
    Subroutine Arr(A)
        !DEC$ ATTRIBUTES DLLIMPORT, ALIAS : 'Arr' :: Arr
            
        integer A(:)
    end subroutine Arr
end interface

I.e. A will not be declared in interface as allocatable all works!

And the second and main question: how Arr knows UBound of A!? Especially when Arr is a DLLs subroutine. And it doesnt matter if A is allocatable or integer A(:) (taking-form-array).

I hope someone will explain.

Stanislav

0 Kudos
0 Replies
Reply