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/41328] [4.4/4.5 regression] bad iostat when reading DOS file in a character array (non-advancing)



------- Comment #1 from burnus at gcc dot gnu dot org  2009-09-10 11:46 -------
Jerry, can you have a look? I can reproduce it under Linux with 4.5.0 20090910
with CRLF line breaks.

Valgrind error is:
==658== Conditional jump or move depends on uninitialised value(s)
==658==    at 0x4EDDD45: _gfortrani_read_sf (transfer.c:245)

   242            /* If we encounter a CR, it might be a CRLF.  */
   243            if (q == '\r') /* Probably a CRLF */
   244              {
   245                if (n < *length && *(p + 1) == '\n')
   246                  dtp->u.p.sf_seen_eor = 2;

The IOSTAT error shown is 5008, which means LIBERROR_ENDFILE.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-09-10 11:46:48
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41328


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