Bug 176843 - 'End of record' error with gfortran
Summary: 'End of record' error with gfortran
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-03 17:28 UTC by Alexander Täschner
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 4.1.0-0.12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-03 22:15:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexander Täschner 2006-01-03 17:28:15 UTC
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,*) ''

Comment 1 Jakub Jelinek 2006-01-03 22:15:57 UTC
This works just fine in rawhide gcc-gfortran-4.1.0-0.12.


Note You need to log in before you can comment on or make changes to this bug.