Microsoft KB Archive/65049

= BUG: F2124: CODE GENERATION ERROR w/Adjustable Arrays and $LARGE =

Article ID: 65049

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft FORTRAN Compiler 5.0
 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN Compiler 5.0
 * Microsoft FORTRAN Compiler 5.1

-



This article was previously published under Q65049



SYMPTOMS
The error

F2124: CODE GENERATION ERROR

occurs when using adjustable-sized, three-dimensional arrays and the huge memory model with Microsoft FORTRAN version 5.0 or 5.1.

This does not apply to FORTRAN PowerStation, because huge memory model is not supported.



RESOLUTION
Compiling with the /Od option will eliminate this error. Changing the order and size of the subscripts may also eliminate this error.



STATUS
Microsoft has confirmed this to be a problem in FORTRAN versions 5.0 and 5.1.



MORE INFORMATION
The following sample code generates error F2124 when compiled with the /AH switch or $LARGE metacommand: SUBROUTINE X( a,b,i,j,m ) DIMENSION a(m,2,2), b(2,m,2)

a(i,2,1) = b(j,i,2)

RETURN END

Additional query words: 5.00 nofps 5.10

Keywords: KB65049

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.