[Bug fortran/33469] New: Add one digit to the default formatted output
dominiq at lps dot ens dot fr
gcc-bugzilla@gcc.gnu.org
Tue Sep 18 09:46:00 GMT 2007
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
More information about the Gcc-bugs
mailing list