public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/53962] New: Tab handling with formatted stream output
@ 2012-07-14 14:34 nmm1 at cam dot ac.uk
  2012-07-15 14:58 ` [Bug libfortran/53962] " burnus at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: nmm1 at cam dot ac.uk @ 2012-07-14 14:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53962

             Bug #: 53962
           Summary: Tab handling with formatted stream output
    Classification: Unclassified
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: nmm1@cam.ac.uk


Created attachment 27787
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27787
A program to show the effect, and the difference from sequential

Tab handling (or at least the T descriptor) is not being handled correctly
for formatted stream output.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libfortran/53962] Tab handling with formatted stream output
  2012-07-14 14:34 [Bug libfortran/53962] New: Tab handling with formatted stream output nmm1 at cam dot ac.uk
@ 2012-07-15 14:58 ` burnus at gcc dot gnu.org
  2021-12-22 12:18 ` fxcoudert at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-07-15 14:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53962

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |burnus at gcc dot gnu.org,
                   |                            |jvdelisle at gcc dot
                   |                            |gnu.org

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-07-15 14:58:42 UTC ---
For
    WRITE (42,'("Kilroy was here",T5,"X")')

gfortran gives (first line with sequential, second with stream):

 KilrXy was here
0000000   K   i   l   r   X   y       w   a   s       h   e   r   e  \n
0000020
 Kilroy was here    X
0000000   K   i   l   r   o   y       w   a   s       h   e   r   e    
0000020               X  \n
0000025

Expected: Twice the same result  (as for the first output).


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libfortran/53962] Tab handling with formatted stream output
  2012-07-14 14:34 [Bug libfortran/53962] New: Tab handling with formatted stream output nmm1 at cam dot ac.uk
  2012-07-15 14:58 ` [Bug libfortran/53962] " burnus at gcc dot gnu.org
@ 2021-12-22 12:18 ` fxcoudert at gcc dot gnu.org
  2023-10-13 20:28 ` jvdelisle at gcc dot gnu.org
  2024-02-03 18:28 ` jvdelisle at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2021-12-22 12:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53962

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu.org

--- Comment #3 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
I'm wondering. I've been reading Fortran 2008:

> 10.8.1.1 T, TL, and TR editing
> The left tab limit acts file positioning by the T and TL edit descriptors.
> Immediately prior to nonchild data transfer (9.6.4.8.2), the left tab limit
> becomes defined as the character position of the current record or the current
> position of the stream file. If, during data transfer, the file is positioned
> to another record, the left tab limit becomes defined as character position
> one of that record.

Doesn't that mean that for stream file, the left tab limit becomes defined as
the current position at the end of "Kilroy was here", and the next position
needs to be counted from that position?

Probably my reading is wrong, but I'm not sure why. Intel definitely agrees
with the bug report, says the output should be the same in both cases.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libfortran/53962] Tab handling with formatted stream output
  2012-07-14 14:34 [Bug libfortran/53962] New: Tab handling with formatted stream output nmm1 at cam dot ac.uk
  2012-07-15 14:58 ` [Bug libfortran/53962] " burnus at gcc dot gnu.org
  2021-12-22 12:18 ` fxcoudert at gcc dot gnu.org
@ 2023-10-13 20:28 ` jvdelisle at gcc dot gnu.org
  2024-02-03 18:28 ` jvdelisle at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2023-10-13 20:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53962

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at gcc dot gnu.org
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jvdelisle at gcc dot gnu.org

--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Assigning to myself. This may be a duplicate of other tabbing bugs.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libfortran/53962] Tab handling with formatted stream output
  2012-07-14 14:34 [Bug libfortran/53962] New: Tab handling with formatted stream output nmm1 at cam dot ac.uk
                   ` (2 preceding siblings ...)
  2023-10-13 20:28 ` jvdelisle at gcc dot gnu.org
@ 2024-02-03 18:28 ` jvdelisle at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2024-02-03 18:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53962

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Marking this as a duplicate and will roll the test case here into PR109358 as I
work it shortly.

*** This bug has been marked as a duplicate of bug 109358 ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-03 18:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-14 14:34 [Bug libfortran/53962] New: Tab handling with formatted stream output nmm1 at cam dot ac.uk
2012-07-15 14:58 ` [Bug libfortran/53962] " burnus at gcc dot gnu.org
2021-12-22 12:18 ` fxcoudert at gcc dot gnu.org
2023-10-13 20:28 ` jvdelisle at gcc dot gnu.org
2024-02-03 18:28 ` jvdelisle at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).