The following testcase produces an "end of record" error at runtime. It is extracted from a long program which was used with the Digital compiler under Tru64 Unix without any problems. For the test below gfortran version 4.0.2-8 was used. --- $ cat ugm.f INTEGER IDUMMY CHARACTER*20 ANSWER CHARACTER*80 TITLE REAL PPRJ ANSWER='mc run 1' READ(ANSWER(11:20),*) IDUMMY PPRJ=3.1 WRITE(TITLE,*) PPRJ END $ gfortran ugm.f -o ugm $ ./ugm At line 12 of file ugm.f Fortran runtime error: End of record --- As workaround it is possible to insert the following line at line 11: WRITE(TITLE,*) ''
This works just fine in rawhide gcc-gfortran-4.1.0-0.12.