From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23790 invoked by alias); 19 Mar 2007 12:53:25 -0000 Received: (qmail 23749 invoked by uid 48); 19 Mar 2007 12:53:14 -0000 Date: Mon, 19 Mar 2007 12:53:00 -0000 Message-ID: <20070319125314.23748.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31199] write with "t1" + nonadvancing transfer format gives wrong output In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg01811.txt.bz2 ------- Comment #8 from burnus at gcc dot gnu dot org 2007-03-19 12:53 ------- Reading further, I find: "For nonadvancing input [...] If no error condition occurred in a nonadvancing output statement, the file position is not changed." If I understand the whole correctly, it means: - The position for the nonadvancing transfer of "XXXXXXXXX", t1, "ABC" is after the "ABC". - After doing the advancing transfer "DEF" it is at the highest-numbered position to which data was transferred by the statement, namely after "ABCDEFXXX" + new_line. Thus, NAG f95/Sun/HP seems to be wrong; ifort, g95, xlf and portland seem to be right and gfortran gets it differently wrong. -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|write with "t1" format gives|write with "t1" + |wrong output |nonadvancing transfer format | |gives wrong output http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31199