(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