Fortran 2003 EOF Supported?

Is the Fortran EOF funciton (end of file) supported in PGI Fortran? I am using 11.4 and I get an error with the function.

Hi David,

The eof function is not standard compliant. Instead please consider using READ’s ‘end’ or ‘iostat’ specifier. Also, the F2003 iso_fortran_env intrinsic module includes a constant called ‘iostat_end’ which you can use to compare against the iostat value to determine if the end-of-file condition has been reached.

  • Mat