[Bug fortran/40638] RTE: "Unit number in I/O statement too large" -- falls with any low value

kargl at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jul 3 14:41:00 GMT 2009

------- Comment #3 from kargl at gcc dot gnu dot org  2009-07-03 14:40 -------
Upgrade your compiler.  The bug appears to fixed in at least trunk
while the bug is present in 4.3.3.  I can't test 4.4.0 at the moment.

troutmask:sgk[203] gfc4x -o z testlun.f 
troutmask:sgk[204] ./z
troutmask:sgk[205] gfc43 -o z testlun.f 
troutmask:sgk[206] ./z
At line 8 of file testlun.f
Fortran runtime error: Unit number in I/O statement too large

PS: Your code would work fine with 4.3.x if you use a default
integer kind for the lun instead of an INTEGER(KIND=2)



More information about the Gcc-bugs mailing list