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.

Reply via email to