FIX: Bad Output with Element of Structure in CHAR Function (69002)
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 Q69002 SYMPTOMS
In FORTRAN 5.0 and 5.1, a program using the CHAR intrinsic function
on a structure element within a WRITE or PRINT statement can produce
erroneous output when executed under MS-DOS, or result in a protection
violation when executed under OS/2.
RESOLUTION
To avoid these problems, remove the intrinsic function from the WRITE
or PRINT statement by assigning the result of the CHAR intrinsic
function to a temporary variable, and then use this variable in the
output statement.
STATUS
Microsoft has confirmed this to be a problem in FORTRAN versions 5.0
and 5.1. This problem was corrected in FORTRAN PowerStation.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbfix KB69002 |
---|
|