public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/14334] New: [libgfortran] L edit descriptor does not work.
@ 2004-02-28 16:32 bdavis9659 at comcast dot net
  2004-02-28 18:32 ` [Bug libfortran/14334] " bdavis9659 at comcast dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-02-28 16:32 UTC (permalink / raw)
  To: gcc-bugs

The 'L' edit descriptor prints either T or F, depending on the field width, but
the value printed has no relationship to the value of the data item.

       logical true,false
       true = .TRUE.
       false = .FALSE.
       print*,'true = ',true
       write(6,'(L1)')true
       write(6,'(L4)')true
       print*,'false = ',false
       write(6,'(L1)')false
       write(6,'(L4)')false
       end

$ /usr/local/bin/gfortran -static -g lprint.f90
$ ./a.out
true =   T
F
   T
false =   F
F
   T

$/usr/local/bin/gfortran --version
GNU Fortran 95 (GCC 3.5-tree-ssa 20040228 (merged 20040211))

Using the "gold standard" , g77, here is what the output should be:
$ g77 -static -g lprint.f
$ ./a.out
 true =  T
T
   T
 false =  F
F
   F

-- 
           Summary: [libgfortran] L edit descriptor does not work.
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bdavis9659 at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug libfortran/14334] [libgfortran] L edit descriptor does not work.
  2004-02-28 16:32 [Bug libfortran/14334] New: [libgfortran] L edit descriptor does not work bdavis9659 at comcast dot net
@ 2004-02-28 18:32 ` bdavis9659 at comcast dot net
  2004-02-28 20:41 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-02-28 18:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis9659 at comcast dot net  2004-02-28 18:32 -------
proposed patch 

http://gcc.gnu.org/ml/gcc-patches/2004-02/msg02702.html

-- 


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


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

* [Bug libfortran/14334] [libgfortran] L edit descriptor does not work.
  2004-02-28 16:32 [Bug libfortran/14334] New: [libgfortran] L edit descriptor does not work bdavis9659 at comcast dot net
  2004-02-28 18:32 ` [Bug libfortran/14334] " bdavis9659 at comcast dot net
@ 2004-02-28 20:41 ` pinskia at gcc dot gnu dot org
  2004-03-03  6:58 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-28 20:41 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |tree-ssa


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


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

* [Bug libfortran/14334] [libgfortran] L edit descriptor does not work.
  2004-02-28 16:32 [Bug libfortran/14334] New: [libgfortran] L edit descriptor does not work bdavis9659 at comcast dot net
  2004-02-28 18:32 ` [Bug libfortran/14334] " bdavis9659 at comcast dot net
  2004-02-28 20:41 ` pinskia at gcc dot gnu dot org
@ 2004-03-03  6:58 ` pinskia at gcc dot gnu dot org
  2004-03-03 17:05 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-03  6:58 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |14398
              nThis|                            |


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


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

* [Bug libfortran/14334] [libgfortran] L edit descriptor does not work.
  2004-02-28 16:32 [Bug libfortran/14334] New: [libgfortran] L edit descriptor does not work bdavis9659 at comcast dot net
                   ` (2 preceding siblings ...)
  2004-03-03  6:58 ` pinskia at gcc dot gnu dot org
@ 2004-03-03 17:05 ` pinskia at gcc dot gnu dot org
  2004-03-24 13:08 ` cvs-commit at gcc dot gnu dot org
  2004-03-24 16:02 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-03 17:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-03 17:05 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-03 17:05:41
               date|                            |


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


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

* [Bug libfortran/14334] [libgfortran] L edit descriptor does not work.
  2004-02-28 16:32 [Bug libfortran/14334] New: [libgfortran] L edit descriptor does not work bdavis9659 at comcast dot net
                   ` (3 preceding siblings ...)
  2004-03-03 17:05 ` pinskia at gcc dot gnu dot org
@ 2004-03-24 13:08 ` cvs-commit at gcc dot gnu dot org
  2004-03-24 16:02 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-24 13:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-03-24 13:08 -------
Subject: Bug 14334

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	tree-ssa-20020619-branch
Changes by:	pbrook@gcc.gnu.org	2004-03-24 13:08:18

Modified files:
	gcc/testsuite  : ChangeLog.tree-ssa 
	libgfortran    : ChangeLog 
	libgfortran/io : write.c 
Added files:
	gcc/testsuite/gfortran.fortran-torture/execute: 
	                                                write_logical.f90 

Log message:
	PR 14334
	* write.c (write_l): Use extract_int for 'L' edit descriptor.
	testsuite
	* gfortran.fortran-torture/execute/write_logical_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.199&r2=1.1.2.200
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/write_logical.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.34&r2=1.1.2.35
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/write.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.7&r2=1.1.2.8



-- 


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


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

* [Bug libfortran/14334] [libgfortran] L edit descriptor does not work.
  2004-02-28 16:32 [Bug libfortran/14334] New: [libgfortran] L edit descriptor does not work bdavis9659 at comcast dot net
                   ` (4 preceding siblings ...)
  2004-03-24 13:08 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-24 16:02 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-24 16:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-24 16:02 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-03-24 16:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-28 16:32 [Bug libfortran/14334] New: [libgfortran] L edit descriptor does not work bdavis9659 at comcast dot net
2004-02-28 18:32 ` [Bug libfortran/14334] " bdavis9659 at comcast dot net
2004-02-28 20:41 ` pinskia at gcc dot gnu dot org
2004-03-03  6:58 ` pinskia at gcc dot gnu dot org
2004-03-03 17:05 ` pinskia at gcc dot gnu dot org
2004-03-24 13:08 ` cvs-commit at gcc dot gnu dot org
2004-03-24 16:02 ` pinskia 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).