Fortran 90, 95, 2003, and 2008 standard language errors

Fortran 90 standard language errors

A Fortran 90 language error results from the use of XL Fortran extensions to the Fortran 90 language that cannot be detected at compile time. A Fortran 90 language error is considered a severe error when the LANGLVL run-time option has been specified with the value 90STD and the ERR_RECOVERY run-time option has either not been set or is set to NO. If both LANGLVL=90STD and ERR_RECOVERY=YES have been specified, the error is considered a recoverable error. If LANGLVL= EXTENDED is specified, the error condition is not considered an error.

Fortran 95 standard language errors

A Fortran 95 language error results from the use of XL Fortran extensions to the Fortran 95 language that cannot be detected at compile time. A Fortran 95 language error is considered a severe error when the LANGLVL run-time option has been specified with the value 95STD and the ERR_RECOVERY run-time option has either not been set or is set to NO. If both LANGLVL=95STD and ERR_RECOVERY=YES have been specified, the error is considered a recoverable error. If LANGLVL=EXTENDED is specified, the error condition is not considered an error.

Fortran 2003 standard language errors

A Fortran 2003 standard language error results from the use of XL Fortran extensions to the Fortran 2003 language standard that cannot be detected at compile time. A Fortran 2003 language error is considered a severe error when the LANGLVL run-time option has been specified with the value 2003STD and the ERR_RECOVERY run-time option has either not been set or is set to NO. If both LANGLVL=2003STD and ERR_RECOVERY=YES have been specified, the error is considered a recoverable error. If LANGLVL=EXTENDED is specified, the error condition is not considered an error.

Fortran 2008 standard language errors

A Fortran 2008 standard language error results from the use of XL Fortran extensions to the Fortran 2008 language standard that cannot be detected at compile time. A Fortran 2008 language error is considered a severe error when the LANGLVL run-time option has been specified with the value 2008STD and the ERR_RECOVERY run-time option has either not been set or is set to NO. If both LANGLVL=2008STD and ERR_RECOVERY=YES have been specified, the error is considered a recoverable error. If LANGLVL=EXTENDED is specified, the error condition is not considered an error.

Table 1. IOSTAT Values for Fortran 90, 95, 2003, and 2008 Standard Language Error Conditions
IOSTAT Value Error Description
53 Mismatched edit descriptor and item type in formatted I/O.
58 Format specification error.
140 Unit is not connected when the I/O statement is attempted. Only for READ, WRITE, PRINT, REWIND, and ENDFILE.
141 Two ENDFILE statements without an intervening REWIND or BACKSPACE on the unit.
151 The FILE= specifier is missing and the STATUS= specifier does not have a value of 'SCRATCH' on an OPEN statement.
187 NAMELIST comments are not allowed by the Fortran 90 standard.
199 STREAM is not a valid value for the ACCESS= specifier on an OPEN statement in Fortran 90 or Fortran 95.


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us