http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48684
Summary: Incorrect field alignment with Gw.dEe descriptor Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: libfortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: thenl...@users.sourceforge.net With a Gw.dEe descriptor the output is formatted incorrectly if the F conversion is selected and an exponent width e>4 is selected. The conversion in this case is F(n-4).(d-x).n('b') The constant n is required by Fortran 2008 to be e + 2. But it is incorrectly calculated by GFortran as min(e, 4) + 2 print "(g15.3e5)", 0.1d0 print "(g15.3e5)", 0.1d12 Output: 0.100 0.100E+00012 Expected output: 0.100 0.100E+00012