ID: Q77301
5.00 5.10 | 5.00 5.10
MS-DOS | OS/2
kbprb
The information in this article applies to:
When a huge array is allocated and passed to a subroutine, the compiler generates the warning:
warning F4605: FAR formal argument 1 : passed HUGE array
This is despite a HUGE attribute on the formal argument of the
subroutine.
The only way to suppress this warning is to compile with the /AH option or to use an interface statement (as commented out in the code below).
Microsoft has confirmed this to be a problem in the products listed above.
This is not an issue in FORTRAN PowerStation, since the HUGE attribute is not supported.
The following code can be used to reproduce the problem:
c interface to subroutine suba(x,n) c real x[huge] c integer n c end
real y[allocatable,huge] (:)
n = 40000
allocate(y(n),stat=ierror)
call suba(y,n)
end
subroutine suba(x[huge],n)
real x
end
Additional reference words: 5.00 5.10
KBCategory: kbprb
KBSubcategory: FLIss
Keywords : kberrmsg kbLangFortran
Version : 5.00 5.10 | 5.00 5.10
Platform : MS-DOS OS/2
Last Reviewed: May 23, 1998