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 fortran/80741] New: incorrect behaviour of rewind with namelist


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

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