This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/80741] New: incorrect behaviour of rewind with namelist
- From: "james.s.spencer at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 14 May 2017 15:45:19 +0000
- Subject: [Bug fortran/80741] New: incorrect behaviour of rewind with namelist
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80741
Bug ID: 80741
Summary: incorrect behaviour of rewind with namelist
Product: gcc
Version: 7.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: james.s.spencer at gmail dot com
Target Milestone: ---
Created attachment 41353
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41353&action=edit
test case
Rewind does not appear to work correctly if end of file has been reached and
the file contains a namelist.
With the attached file I get with gfortran 7.1.0:
&TEST
X= 10,
Y= 10,
/
done
eof
&TEST
X= 0,
Y= 0,
/
X=
gfortran 6.3.0 I get the behaviour I expect (namelist set on both passes and
after reading the namelist, the next record is the line after the namelist):
&TEST
X= 10,
Y= 10,
/
done
eof
&TEST
X= 10,
Y= 10,
/
done