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



The information in this article applies to:

  • Microsoft FORTRAN Compiler for MS-DOS 5.0
  • Microsoft FORTRAN Compiler for MS-DOS 5.1
  • Microsoft FORTRAN compiler for OS/2 5.0
  • Microsoft FORTRAN compiler for OS/2 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
				

Modification Type:MajorLast Reviewed:12/1/2003
Keywords:KB65049