FIX: /AH and /4Yb with Adjustable-Size Arrays Cause F2124

ID: Q85120


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


SYMPTOMS

Compiling code with the /4Yb and /AH options that contains an adjustable- size array that is passed in a CALL statement to another subroutine may cause the compiler to generate the following error:

error F2124: CODE GENERATION ERROR


CAUSE

The problem is caused by common sub-expression elimination optimization.


RESOLUTION

Compiling with /Od will suppress the error. When debugging is completed and the /4Yb option is removed full optimization can then be used.


STATUS

Microsoft has confirmed this to be a problem in FORTRAN version 5.1. This problem was corrected in FORTRAN PowerStation, version 1.0.


MORE INFORMATION

Compiling the following code with /AH and /4Yb will reproduce the problem:

Sample code


     subroutine sub1(n,p)
      real p(n,2,1)

      call sub2(p(1,2,1))

      return
      end 

Additional query words: 5.10 buglist5.10 fixlist1.00

Keywords :
Version : :5.1
Platform :
Issue type :


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