This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/57822] New: I/O: "(g0)" wrongly prints "E+0000"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]