Hello, Ive got this problem ***** endfile: truncation failed in endfile apparent state: unit 1 named fort.1 last format: list io lately writing direct formatted external IO ***** On the file fort.1 I first open it, then read, then close, then write, then close again . But this happens randomly and even randomly with the 5 files I use in my program. The compiler is g77 for windows. On Linux it works perfectly (w/ gfortran). I really need to fix this problem, could you please suggest me what I should write inside my code to explain g77 that he should have a good behavior? :)
Thanks Mario Alberto Annunziata -- Summary: truncation error in endfile Product: gcc Version: unknown Status: UNCONFIRMED Severity: critical Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: marbertone at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38437