[Bug fortran/31199] write with t1 format gives wrong output
--- Comment #5 from burnus at gcc dot gnu dot org 2007-03-19 11:12 --- Current result: a = ABCDEFXXX b = ABCDEF c = ABCDEFXXX Result by g95/ifort: ABCDEFXXX ABCDEFXXX ABCDEFXXX Result by NAG f95, SUN and HP: ABCDEFXXX ABCXXDEF ABCDEFXXX I think the latter is correct: Section 9.2.3.3 of the Fortran 2003 standard: For a formatted stream output statement, ... the terminal point of the file is set to the highest-numbered position to which data was transferred by the statement. (Thanks to Ian Hounam/NAG for pointing out.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31199
[Bug fortran/31199] write with t1 format gives wrong output
--- Comment #6 from dominiq at lps dot ens dot fr 2007-03-19 12:15 --- Result by g95/ifort: You can probably add xlf to this list (should be checked on a recent version). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31199
[Bug fortran/31199] write with t1 format gives wrong output
--- Comment #7 from dominiq at lps dot ens dot fr 2007-03-19 12:18 --- You can probably add xlf to this list and Portland Group Fortran. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31199
[Bug fortran/31199] write with t1 format gives wrong output
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-03-19 05:49 --- Found it. In the case of advance=no we are not saving the maximum position reached to be used by the following write statement. This one is subtle. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31199
[Bug fortran/31199] write with t1 format gives wrong output
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2007-03-17 15:59 --- *** Bug 31207 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31199
[Bug fortran/31199] write with t1 format gives wrong output
--- Comment #1 from burnus at gcc dot gnu dot org 2007-03-16 13:54 --- Current result: a = ABCDEFXXX b = ABCDEF c = ABCDEFXXX Expected (g95/ifort): ABCDEFXXX ABCDEFXXX ABCDEFXXX (NAG f95 has: ABCDEFXXX ABCXXDEF ABCDEFXXX ) -- burnus at gcc dot gnu dot org changed: What|Removed |Added CC||jvdelisle at gcc dot gnu dot ||org, burnus at gcc dot gnu ||dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords||wrong-code Last reconfirmed|-00-00 00:00:00 |2007-03-16 13:54:17 date|| Summary|wrong code generated with |write with t1 format gives |gfortran|wrong output http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31199
[Bug fortran/31199] write with t1 format gives wrong output
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-03-16 22:57 --- I will work this one. I want to review the standard. I think we are truncating and I am not so sure this has to do with the t1 format specifier. We'll see. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2007-03-16 13:54:17 |2007-03-16 22:57:08 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31199