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

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 ` pinskia at gcc dot gnu dot org
2004-05-16 21:41 ` cvs-commit 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).