[Bug fortran/36421] New: Gw.d edit descriptor for integer numbers: Wrong output

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jun 2 14:13:00 GMT 2008


(Cf. PR 36420 for G0.)

print '(a,g4.2,a0)', ':',4,':'
end

should print the same as "I4", namely ":   4". However, gfortran prints it as
":  04", which is the same as "I4.2". The standard states [F2003]:

"10.6.4.1.1 Generalized integer editing" / "When used to specify the
input/output of integer data, the Gw.d and Gw.d Ee edit descriptors follow the
rules for the Iw edit descriptor (10.6.1.1), except that w shall not be zero."


-- 
           Summary: Gw.d edit descriptor for integer numbers: Wrong output
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list