http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47613
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org 2011-02-04 21:57:11 UTC --- I don't see this problem on FreeBSD. troutmask:sgk[207] gfc4x -o z lo.f90 troutmask:sgk[208] ./z -1 T troutmask:sgk[209] gfc4x -o z lo.f90 -static troutmask:sgk[210] ./z -1 T troutmask:sgk[211] gfc45 -o z lo.f90 troutmask:sgk[212] ./z -1 T troutmask:sgk[213] gfc45 -o z lo.f90 -static troutmask:sgk[214] ./z -1 T troutmask:sgk[215] gfc4x --version GNU Fortran (GCC) 4.6.0 20110204 (experimental) troutmask:sgk[216] gfc45 --version GNU Fortran (GCC) 4.5.3 20110131 (prerelease) So, this is target specific. What target are you using? I'll also note that in ios = -1 and 5010 are LIBERROR_END = -1, /* End of file, must be negative. */ LIBERROR_READ_VALUE, which are both possible errors for reading from an unconnected number.