From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 60F653858404; Fri, 2 Jun 2023 01:51:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60F653858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685670664; bh=x1iZfqRiHQZTY5jLbX48IVhK0F5DQuhUpzbMXnCfC28=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tjnk9OZye+x9SMHwtHdmwWcjkFCLQa8lk/fSHdz/MUDW458CqkIHYQVV8PwV6Repi IGKLKQHnFGK9vIEzdHd8mXyvJuvZci/kmBU9QuqH6iZ7PzEOQC88MMMlmBRd7qh87I QhawnLTCn5DmCJ/mda/6mVt74Uk/qL571w0l7J4g= From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109358] Wrong formatting with T-descriptor during stream output Date: Fri, 02 Jun 2023 01:51:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109358 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #6 from Jerry DeLisle --- I have been doing some additional checking and tried this. It is a variation which is not STREAM related: program tabs implicit none integer :: fd open(newunit=3Dfd, file=3D"test.txt", form=3D"formatted") write(fd, "(a)") "12345678901234567890123456789" write(fd, "(i4, t25, t2, i4.4)") 1234, 0123 close(fd) end program tabs With gfortran gcc 10.4.1 20230121 (GCC) $ gfc10 -static -o tabs.x tabs.f90 $ ./tabs.x=20 $ cat test.txt=20 12345678901234567890123456789 1234 0123 It seems to me this should be: 10123 Am I wrong?=