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

Last reviewed: July 11, 1995
Article ID: Q65049
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 5.0 and 5.1
  • Microsoft FORTRAN for OS/2, versions 5.0 and 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 reference words: 5.00 5.10
KBCategory: kbtool kbbuglist
KBSubcategory: FLIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 11, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.