It seems that bug 33400 is not fixed in mingw32 version of gfortran (winXP):
Missplaced END-OF-FILE when reading file without a line terminator on the last line, e.g. REAL :: a, b, c OPEN(UNIT=10,FILE='input') READ(10,*) a, b, c PRINT*, a*b*c END (file 'input' created with notepad -- without line break after last line) IF file 'input' doesnt contain line terminator on the last line, program crashes with: At line 3 of file nt.f90 (unit = 10, file = 'input') Fortran runtime error: End of file -- Summary: See Bug 33400 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33400) Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tibor at atlas dot cz GCC build triplet: i586-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37083