FIX: Incorrect Results, F4803 Error, Function ENTRY Statement (24628)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 4.0
- Microsoft FORTRAN Compiler for MS-DOS 4.00a
- 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 OS/2 4.1
- Microsoft FORTRAN compiler for OS/2 5.0
This article was previously published under Q24628 SYMPTOMS
An application generates incorrect results. When FORTRAN for MS-DOS
versions 4.0, 4.0a, or 4.01 compiles the program, the compiler generates
the following message:
warning F4803 FUNCTION : return variable not set
CAUSE
The problem occurs because the compiler requires the return value of an
entry to be set using the entry name. The ANSI FORTRAN-77 standard
states that the return value can be set using the entry name or the
original function name if they have the same type.
RESOLUTION
To work around this problem, set the return value of a entry that is
part of a function by using the entry name instead of the function name.
STATUS
Microsoft has confirmed this to be a problem in FORTRAN versions 4.0,
4.0a, 4.01, 4.10, and 5.00 for MS-DOS and versions 4.1 and 5.0 for OS/2.
This problem was corrected in FORTRAN version 5.10 for MS-DOS and OS/2.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbfix KB24628 |
---|
|