This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57822] New: I/O: "(g0)" wrongly prints "E+0000"
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Jul 2013 15:52:22 +0000
- Subject: [Bug fortran/57822] New: I/O: "(g0)" wrongly prints "E+0000"
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57822
Bug ID: 57822
Summary: I/O: "(g0)" wrongly prints "E+0000"
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
g0 should print the minimal output. However, gfortran shows the exponent
("E+0000") for REAL(10) and REAL(16):
.100000001
.10000000000000001
.100000000000000000001E+0000
.100000000000000000000000000000000005E+0000
Test case:
print '(g0)', 0.1_4
print '(g0)', 0.1_8
print '(g0)', 0.1_10
print '(g0)', 0.1_16
end