public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/15311] New: Incorrect handling of A edit descriptor
@ 2004-05-06  8:42 lei at il dot ibm dot com
  2004-05-06 11:13 ` [Bug libfortran/15311] " bdavis at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: lei at il dot ibm dot com @ 2004-05-06  8:42 UTC (permalink / raw)
  To: gcc-bugs

The draft standard says: (10.6.3 Character editing)

"If the specified field width w for an A edit descriptor corresponding to
an output item is greater than len, the output field will consist of w-len
blanks followed by the len characters from the internal value".

Currently, the behaviour is such that the blanks are printed after the
value.

This defects causes miscompare in SPEC FP benchmark 189.lucas.

% cat foo.f90
program main
  character*100 s
  write(s,'(a18)') "hello world"
  if (s.eq."       hello world") print*, "Ok"
  if (s.eq."hello world       ") print*, "Wrong!"
end

-- 
           Summary: Incorrect handling of A edit descriptor
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lei at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug libfortran/15311] Incorrect handling of A edit descriptor
  2004-05-06  8:42 [Bug libfortran/15311] New: Incorrect handling of A edit descriptor lei at il dot ibm dot com
@ 2004-05-06 11:13 ` bdavis at gcc dot gnu dot org
  2004-05-13 12:24 ` bdavis9659 at comcast dot net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-05-06 11:13 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bdavis9659 at comcast dot
                   |dot org                     |net
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-06 11:13:54
               date|                            |


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


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

* [Bug libfortran/15311] Incorrect handling of A edit descriptor
  2004-05-06  8:42 [Bug libfortran/15311] New: Incorrect handling of A edit descriptor lei at il dot ibm dot com
  2004-05-06 11:13 ` [Bug libfortran/15311] " bdavis at gcc dot gnu dot org
@ 2004-05-13 12:24 ` bdavis9659 at comcast dot net
  2004-05-13 12:46 ` [Bug libfortran/15311] [gfortran] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-05-13 12:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis9659 at comcast dot net  2004-05-13 01:30 -------
proposed patch here:

http://gcc.gnu.org/ml/fortran/2004-05/msg00120.html

-- 


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


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

* [Bug libfortran/15311] [gfortran] Incorrect handling of A edit descriptor
  2004-05-06  8:42 [Bug libfortran/15311] New: Incorrect handling of A edit descriptor lei at il dot ibm dot com
  2004-05-06 11:13 ` [Bug libfortran/15311] " bdavis at gcc dot gnu dot org
  2004-05-13 12:24 ` bdavis9659 at comcast dot net
@ 2004-05-13 12:46 ` pinskia at gcc dot gnu dot org
  2004-05-16 21:41 ` cvs-commit at gcc dot gnu dot org
  2004-05-16 21:41 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-13 12:46 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Summary|Incorrect handling of A edit|[gfortran] Incorrect
                   |descriptor                  |handling of A edit
                   |                            |descriptor
   Target Milestone|---                         |tree-ssa


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


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

* [Bug libfortran/15311] [gfortran] Incorrect handling of A edit descriptor
  2004-05-06  8:42 [Bug libfortran/15311] New: Incorrect handling of A edit descriptor lei at il dot ibm dot com
                   ` (3 preceding siblings ...)
  2004-05-16 21:41 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-16 21:41 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-16 21:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-15 18:42 -------
Fixed.

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


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


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

* [Bug libfortran/15311] [gfortran] Incorrect handling of A edit descriptor
  2004-05-06  8:42 [Bug libfortran/15311] New: Incorrect handling of A edit descriptor lei at il dot ibm dot com
                   ` (2 preceding siblings ...)
  2004-05-13 12:46 ` [Bug libfortran/15311] [gfortran] " pinskia at gcc dot gnu dot org
@ 2004-05-16 21:41 ` cvs-commit at gcc dot gnu dot org
  2004-05-16 21:41 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-16 21:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-15 18:35 -------
Subject: Bug 15311

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pbrook@gcc.gnu.org	2004-05-15 18:35:39

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

Log message:
	PR fortran/15311
	* io/write.c (write_a): right justify A edit output.
	libgfortran/
	* gfortran.fortran-torture/execute/write_a_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3753&r2=1.3754
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/write_a_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/write.c.diff?cvsroot=gcc&r1=1.2&r2=1.3



-- 


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


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

end of thread, other threads:[~2004-05-15 18:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06  8:42 [Bug libfortran/15311] New: Incorrect handling of A edit descriptor lei at il dot ibm dot com
2004-05-06 11:13 ` [Bug libfortran/15311] " bdavis at gcc dot gnu dot org
2004-05-13 12:24 ` bdavis9659 at comcast dot net
2004-05-13 12:46 ` [Bug libfortran/15311] [gfortran] " pinskia at gcc dot gnu dot org
2004-05-16 21:41 ` cvs-commit at gcc dot gnu dot org
2004-05-16 21:41 ` 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).