[Bug libfortran/35293] [4.4 Regression] truncation errors with gfortran.dg/streamio_11.f90, 3, 4 and 15.

tkoenig at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Feb 26 23:19:00 GMT 2008



------- Comment #9 from tkoenig at gcc dot gnu dot org  2008-02-26 23:19 -------
(In reply to comment #8)


> > b) fail at runtime (noisily) and xfail the
> >    corresponding test cases
> 
> *sigh* ok, I'll do it, except for the noise.

Thanks a lot!

You'll probably want to make the truncate a no-op if we
are at the end of file already.  IIRC, there may be a few
places in the library where we call ftruncate() even
if we don't really need to.

> As I mentioned, there are a few
> bugs there anyway, but nobody commented on that.

We know :-(

The alloc stream facility has quite a few bugs in unexpected places
that tend to be exposed by seemingly harmless changes far away.
It needs to be replaced someday, but so far nobody has made a
start on this.  This is PR 25561, dated 2005-12-25.


-- 


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



More information about the Gcc-bugs mailing list