[Bug fortran/41328] [4.4/4.5 regression] bad iostat when reading DOS file in a character array (non-advancing)
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 10 11:46:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list