Compile and run print '(f14.0,4pf14.0 )', 3742.0, 0.3742 end
Actual Results: 3742. 0000. Expected Results: 3742. 3742. On Gentoo this fails with versions 4.3. On Ubuntu with version 4.2. It works for me with GNU Fortran 95 (GCC) 4.1.2 (Gentoo 4.1.2 p1.1. >From a long time member of X3J3 I agree that the discussion of P editing in 10.6.5.1 is silent concerning F editing on output, which might lead one to conclude that it has no effect. But the last paragraph about F editing in 10.5.1.2.1 (167:23) says "modified by the established scale factor." So I think the new compiler is broken. Four of my compilers (lf95, NAG, Intel, g95 (4.0.3 0.91!)) give your old results. gfortran (4.1.2 20071124) gives your new results, which I think are wrong. -- Summary: Bug in gfortran with combination of P and F in a format. Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fkrogh#gcc at mathalacarte dot com GCC build triplet: Several http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38305