This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/31052] New: Bad IOSTAT values when readings NAMELISTs past EOF


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]