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

ID: Q65049


The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 5.0, 5.1
  • Microsoft FORTRAN for OS/2, versions 5.0, 5.1


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 :
Version : :5.0,5.1
Platform :
Issue type :


Last Reviewed: November 3, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.