FIX: /AH and /4Yb with Adjustable-Size Arrays Cause F2124Last reviewed: September 16, 1997Article ID: Q85120 |
5.10 | 5.10
MS-DOS | OS/2
kbtool kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSCompiling 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 CAUSEThe problem is caused by common sub-expression elimination optimization.
RESOLUTIONCompiling with /Od will suppress the error. When debugging is completed and the /4Yb option is removed full optimization can then be used.
STATUSMicrosoft has confirmed this to be a problem in FORTRAN version 5.1. This problem was corrected in FORTRAN PowerStation, version 1.0.
MORE INFORMATIONCompiling 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 reference words: 5.10 buglist5.10 fixlist1.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |