public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25631]  New: tl format specifier not working correctly
@ 2006-01-02  6:52 jvdelisle at gcc dot gnu dot org
  2006-01-02  6:57 ` [Bug libfortran/25631] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-02  6:52 UTC (permalink / raw)
  To: gcc-bugs

While studying some test cases for pr24268 I discovered this:

      program tl
      real x
      character*13 line
      x = 12.34
      write(line,20) x
 20   format(tr2,tl2,g11.4)
      print *, "123456789012345"
      print *, ">",line,"<"
      end

The tl2 is not getting processed so the numbers printed within the field are
shifted to the right by two spaces.

$ g77 fmt_tl.f
$ ./a.out
 123456789012345
 >  12.34      <
$ gfc fmt_tl.f
$ ./a.out
 123456789012345
 >    12.34    <


-- 
           Summary: tl format specifier not working correctly
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jvdelisle at gcc dot gnu dot org
  GCC host triplet: i696-pc-linux-gnu


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



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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
@ 2006-01-02  6:57 ` pinskia at gcc dot gnu dot org
  2006-01-03  7:16 ` jvdelisle at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-02  6:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-02 06:57 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |19282
              nThis|                            |
             Status|UNCONFIRMED                 |NEW
          Component|fortran                     |libfortran
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-01-02 06:57:26
               date|                            |


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



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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
  2006-01-02  6:57 ` [Bug libfortran/25631] " pinskia at gcc dot gnu dot org
@ 2006-01-03  7:16 ` jvdelisle at gcc dot gnu dot org
  2006-01-08  9:39 ` jvdelisle at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-03  7:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2006-01-03 07:16 -------
TL does not take into account pending spaces and skips when no bytes have been
used yet so it 'thinks' that it is at the beginning of the record and can not
go left.


-- 

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|2006-01-02 06:57:26         |2006-01-03 07:16:32
               date|                            |


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



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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
  2006-01-02  6:57 ` [Bug libfortran/25631] " pinskia at gcc dot gnu dot org
  2006-01-03  7:16 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-08  9:39 ` jvdelisle at gcc dot gnu dot org
  2006-01-18  0:52 ` jvdelisle at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-08  9:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2006-01-08 09:39 -------
Patch submitted for review.


-- 


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



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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-01-08  9:39 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-18  0:52 ` jvdelisle at gcc dot gnu dot org
  2006-01-18  1:06 ` jvdelisle at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-18  0:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jvdelisle at gcc dot gnu dot org  2006-01-18 00:52 -------
Subject: Bug 25631

Author: jvdelisle
Date: Wed Jan 18 00:52:21 2006
New Revision: 109858

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109858
Log:
2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/25631
        * io/transfer.c (formatted_transfer_scalar): Adjust pending_spaces and
        skips so that TL works correctly when no bytes_used yet.  

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/transfer.c


-- 


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


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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-01-18  0:52 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-18  1:06 ` jvdelisle at gcc dot gnu dot org
  2006-01-18  4:27 ` jvdelisle at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-18  1:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jvdelisle at gcc dot gnu dot org  2006-01-18 01:06 -------
Subject: Bug 25631

Author: jvdelisle
Date: Wed Jan 18 01:06:08 2006
New Revision: 109860

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109860
Log:
2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/25631
        * gfortran.dg/fmt_tl.f: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/fmt_tl.f
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-01-18  1:06 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-18  4:27 ` jvdelisle at gcc dot gnu dot org
  2006-01-18  4:32 ` jvdelisle at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-18  4:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jvdelisle at gcc dot gnu dot org  2006-01-18 04:27 -------
Subject: Bug 25631

Author: jvdelisle
Date: Wed Jan 18 04:27:31 2006
New Revision: 109868

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109868
Log:
2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libgfortran/25631
        * io/transfer.c (formatted_transfer_scalar): Adjust pending_spaces and
        skips so that TL works correctly when no bytes_used yet.  

Modified:
    branches/gcc-4_1-branch/libgfortran/ChangeLog
    branches/gcc-4_1-branch/libgfortran/io/transfer.c


-- 


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


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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-01-18  4:27 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-18  4:32 ` jvdelisle at gcc dot gnu dot org
  2006-01-18  6:49 ` jvdelisle at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-18  4:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jvdelisle at gcc dot gnu dot org  2006-01-18 04:32 -------
Subject: Bug 25631

Author: jvdelisle
Date: Wed Jan 18 04:32:16 2006
New Revision: 109869

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109869
Log:
2006-01-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/25631
        * gfortran.dg/fmt_tl.f: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/fmt_tl.f
Modified:
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-01-18  4:32 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-18  6:49 ` jvdelisle at gcc dot gnu dot org
  2006-02-13  3:30 ` patchapp at dberlin dot org
  2006-02-13  3:33 ` dberlin at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-18  6:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jvdelisle at gcc dot gnu dot org  2006-01-18 06:48 -------
Fixed on 4.1 and 4.2


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


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


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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-01-18  6:49 ` jvdelisle at gcc dot gnu dot org
@ 2006-02-13  3:30 ` patchapp at dberlin dot org
  2006-02-13  3:33 ` dberlin at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: patchapp at dberlin dot org @ 2006-02-13  3:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from patchapp at dberlin dot org  2006-02-13 03:30 -------
Subject: Bug number PR25631

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00439.html


-- 


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


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

* [Bug libfortran/25631] tl format specifier not working correctly
  2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-02-13  3:30 ` patchapp at dberlin dot org
@ 2006-02-13  3:33 ` dberlin at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2006-02-13  3:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from dberlin at gcc dot gnu dot org  2006-02-13 03:33 -------
(In reply to comment #9)
> Subject: Bug number PR25631
> 
> A patch for this bug has been added to the patch tracker.
> The mailing list url for the patch is
> http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00439.html
> 

Sorry, this was a test, i didn't mean for it to actually send mail :)


-- 


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


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

end of thread, other threads:[~2006-02-13  3:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-02  6:52 [Bug fortran/25631] New: tl format specifier not working correctly jvdelisle at gcc dot gnu dot org
2006-01-02  6:57 ` [Bug libfortran/25631] " pinskia at gcc dot gnu dot org
2006-01-03  7:16 ` jvdelisle at gcc dot gnu dot org
2006-01-08  9:39 ` jvdelisle at gcc dot gnu dot org
2006-01-18  0:52 ` jvdelisle at gcc dot gnu dot org
2006-01-18  1:06 ` jvdelisle at gcc dot gnu dot org
2006-01-18  4:27 ` jvdelisle at gcc dot gnu dot org
2006-01-18  4:32 ` jvdelisle at gcc dot gnu dot org
2006-01-18  6:49 ` jvdelisle at gcc dot gnu dot org
2006-02-13  3:30 ` patchapp at dberlin dot org
2006-02-13  3:33 ` dberlin at gcc dot gnu dot 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).