This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/31052] New: Bad IOSTAT values when readings NAMELISTs past EOF
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2007 22:24:29 -0000
- Subject: [Bug libfortran/31052] New: Bad IOSTAT values when readings NAMELISTs past EOF
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
the attached problem showed up after PR 30918 got fixed.
(Thanks, Jerry!)
When reading a namelist again and again, even after EOF,
then suddenly the IOSTAT values jumps from -1 to 5008.
This does not happen with other compilers.
The namelist file fort.10 is the same as in PR 30918.
Output of test run:
NAMELIST /REPORT/ after iteration 1:
&REPORT
TYPE=SYNOP ,
USE=active ,
MAX_PROC= 20, /
Number of reports: 1
Last status = -1
Number of reports: 0
Last status = -1
Number of reports: 0
Last status = 5008
Cheers,
-ha
--
Summary: Bad IOSTAT values when readings NAMELISTs past EOF
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31052