FIX: F1001 '@(#)ctypes.c:1.11', Holleriths, Line 467 (77482)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 4.0
- Microsoft FORTRAN Compiler for MS-DOS 4.01
- Microsoft FORTRAN Compiler for MS-DOS 4.1
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN compiler for OS/2 4.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
This article was previously published under Q77482 SYMPTOMS
A FORTRAN program that appends a Hollerith constant consisting of five or
more characters to a string may cause the compiler to generate an internal
compiler error.
FORTRAN 5.1 under OS/2 and DOS:
fatal error F1001: Internal Compiler Error
(compiler file '@(#)ctypes.c:1.12', line 467)
FORTRAN 5.0 under OS/2 and DOS:
fatal error F1001: Internal Compiler Error
(compiler file '@(#)ctypes.c:1.11', line 467)
FORTRAN 4.1 under OS/2, and FORTRAN 4.1 and 4.01 under DOS:
fatal error F1001: Internal Compiler Error
(compiler file '@(#)ctypes.c:1.89', line 447)
FORTRAN 4.0 and 4.0a under DOS:
fatal error F1001: Internal Compiler Error
(compiler file '@(#)ctypes.c:1.80', line 445)
RESOLUTION
The Hollerith descriptor is mainly intended to be used within a FORMAT
specifier. However, it should be able to be used in any context where
character constants can be used.
To avoid this internal compiler error, add the Hollerith constant to the
FORMAT statement instead of the character variable assignment.
Sample code #2 below illustrates this solution.
STATUS
Microsoft has confirmed this to be a problem in Microsoft FORTRAN versions
4.0, 4.01, 4.1, 5.0, and 5.1. This problem was corrected in FORTRAN
PowerStation, version 1.0.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | KB77482 |
---|
|