This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52251] Nonadvancing I/O and the t edit descriptor
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Feb 2012 10:10:22 +0000
- Subject: [Bug fortran/52251] Nonadvancing I/O and the t edit descriptor
- Auto-submitted: auto-generated
- References: <bug-52251-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52251
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-15 10:10:22 UTC ---
I wonder whether that's a [4.2-4.7] regression (backported to 4.1) due to the
patch for PR 25463. (I have not recompiled to check.)
My impression is that without that patch, commen 0 might be correctly handled.
The patch in PR 25463 fixed the case:
write (*,'(A)',advance="no") 'ab'
write (*,'(T1,A)') 'c'
(should be "abc" and not "c" or "ab c" or ...)
I think one needs to save the skips (for advanced='no') somewhere in
dtp->u.p.current_unit as the dtp->u.p.skips are currently gone after
_gfortran_st_write_done, if I understand the code correctly.