The information in this article applies to:
SUMMARYAccording to the sample code on Page 165 of the Microsoft FORTRAN "Reference" manual for versions 5.0 and 5.1, when an application uses an EQUIVALENCE statement to match a character array to a REAL value such that the REAL value has an odd-numbered memory address, the compiler generates an error. This statement is incorrect; the sample code that demonstrates this situation compiles without error. MORE INFORMATIONThe following statement appears on Page 165 of the Microsoft FORTRAN "Reference" manual for versions 5.0 and 5.1 and on Page 211 of the Microsoft FORTRAN "Language Reference" manual for versions 4.01 and 4.1: Microsoft FORTRAN permits character and noncharacter entities to be associated, but not in such a way that noncharacter entities start on an odd-byte boundary. If necessary, the compiler adjusts the storage location of the character entity so the noncharacter entity begins on an even byte. The following example causes a compile-time error:An asterisk is missing from the character array declaration in the manual. The first line should read as follows:
This line of code has been corrected in the FORTRAN PowerStation Language
Help.
The corrected code compiles correctly. Sample Code
Compiling the code above produces the following output:
4 5The following information is available in the .LST style:
Additional query words: 4.00 nofps 4.01 4.10 5.00 5.10
Keywords : |
Last Reviewed: November 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |