The information in this article applies to:
SYMPTOMSIn Microsoft FORTRAN versions prior to version 5.1, an attempt to compile an application that uses an array as a dummy argument in a statement function fails and the compiler generates the following message: However, this message does not appear when FORTRAN version 5.1 compiles the application. CAUSE
The error message is correct; the program is syntactically incorrect.
According to page 15-4 of the ANSI X3.9-1978 FORTRAN specification, an
application can reuse the names of the dummy arguments in a statement
function as a variable name or as a COMMON block name, but not as an
array name (see lines 39-44).
STATUSMicrosoft has confirmed this to be a problem in FORTRAN version 5.1 for MS-DOS and OS/2. This problem was corrected in FORTRAN PowerStation version 1.0. MORE INFORMATION
Microsoft FORTRAN versions prior to version 5.1 correctly generate the
F2352 error message compiling the following application.
Sample Code
Additional query words: 5.10
Keywords : |
Last Reviewed: November 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |