public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/25425]  New: F95 and F2003 differ on list-directed output for 0.0
@ 2005-12-15  9:13 fxcoudert at gcc dot gnu dot org
  2006-01-10  4:35 ` [Bug libfortran/25425] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-12-15  9:13 UTC (permalink / raw)
  To: gcc-bugs

It seems that, according to F95, list-directed formatting of zero must behave
as if formatted with the E descriptor (0.0E+00) while F2003 requires an F
format behaviour (0.0). See message
<1134632379.672465.126120@z14g2000cwz.googlegroups.com> on comp.lang.fortran
("writing formatted zeros with implicit formats", by robert.corbett@sun.com).

We currently implement the F2003 behaviour, independently of the -std flag.

$ cat a.f
      PROGRAM MAIN
        PRINT *, -2.1, -1.2, 0.0, 1.1, 2.2
      END
$ gfortran a.f && ./a.out
  -2.100000      -1.200000       0.000000       1.100000       2.200000    
$ ifort a.f && ./a.out
  -2.100000      -1.200000      0.0000000E+00   1.100000       2.200000


-- 
           Summary: F95 and F2003 differ on list-directed output for 0.0
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-02-14 14:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-15  9:13 [Bug libfortran/25425] New: F95 and F2003 differ on list-directed output for 0.0 fxcoudert at gcc dot gnu dot org
2006-01-10  4:35 ` [Bug libfortran/25425] " pinskia at gcc dot gnu dot org
2006-01-29 22:06 ` jvdelisle at gcc dot gnu dot org
2006-02-06 21:31 ` fxcoudert at gcc dot gnu dot org
2006-02-07  5:46 ` jvdelisle at gcc dot gnu dot org
2006-02-08 20:54 ` fxcoudert at gcc dot gnu dot org
2006-02-14 14:50 ` [Bug libfortran/25425] [4.1 only] " fxcoudert at gcc dot gnu dot org
2006-02-14 14:52 ` fxcoudert 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).