public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33469]  New: Add one digit to the default formatted output
@ 2007-09-18  9:46 dominiq at lps dot ens dot fr
  2007-09-18  9:47 ` [Bug fortran/33469] " dominiq at lps dot ens dot fr
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: dominiq at lps dot ens dot fr @ 2007-09-18  9:46 UTC (permalink / raw)
  To: gcc-bugs

Following a discussion on IRC with FX Coudert, I think the number of digits
printed by default in formatted output should be increased by one. Otherwise
the logic of the test case large_real_kind_form_io_2.f90 is flawed as shown by
the attached code. Its output on AMD64 is

 real(4)
 default         808
 1PG20.6        1881
 1PG20.7         808
 1PG20.8           0

 real(8)
 default         1778
 1PG30.14        1978
 1PG30.15        1778
 1PG30.16           0

 real(10)
 default          916
 1PG60.18        1892
 1PG60.19         916
 1PG60.20           0

where the integers are the number of failures to read back a number. g95 gives:

 real(4)
 default 0
 1PG20.6 1881
 1PG20.7 808
 1PG20.8 0

 real(8)
 default  0
 1PG30.14 1978
 1PG30.15 1778
 1PG30.16 0

 real(10)
 default  0
 1PG60.18 1892
 1PG60.19 916
 1PG60.20 0


-- 
           Summary: Add one digit to the default formatted output
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr


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


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

end of thread, other threads:[~2007-10-03 19:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-18  9:46 [Bug fortran/33469] New: Add one digit to the default formatted output dominiq at lps dot ens dot fr
2007-09-18  9:47 ` [Bug fortran/33469] " dominiq at lps dot ens dot fr
2007-09-18 17:57 ` burnus at gcc dot gnu dot org
2007-09-19  9:54 ` fxcoudert at gcc dot gnu dot org
2007-09-19  9:55 ` fxcoudert at gcc dot gnu dot org
2007-09-19  9:56 ` [Bug libfortran/33469] Default formats for real input are not precise enough fxcoudert at gcc dot gnu dot org
2007-09-19 12:38 ` dominiq at lps dot ens dot fr
2007-10-01 23:28 ` fxcoudert at gcc dot gnu dot org
2007-10-02  0:37 ` fxcoudert at gcc dot gnu dot org
2007-10-02  8:29 ` dominiq at lps dot ens dot fr
2007-10-02 23:28 ` fxcoudert at gcc dot gnu dot org
2007-10-02 23:31 ` fxcoudert at gcc dot gnu dot org
2007-10-03 19:30 ` dominiq at lps dot ens dot fr
2007-10-03 19:34 ` dominiq at lps dot ens dot fr

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).