Bug 176843 - 'End of record' error with gfortran
'End of record' error with gfortran
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
4
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-03 12:28 EST by Alexander Täschner
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.1.0-0.12
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-01-03 17:15:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alexander Täschner 2006-01-03 12:28:15 EST
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 17:15:57 EST
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.