Bug 176843 - 'End of record' error with gfortran
Summary: 'End of record' error with gfortran
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
(Show other bugs)
Version: 4
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Keywords:
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:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-01-03 22:15:57 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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.