[Bug libfortran/48906] Wrong rounding results with -m32

thenlich at users dot sourceforge.net gcc-bugzilla@gcc.gnu.org
Fri May 27 08:56:00 GMT 2011


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

--- Comment #11 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-05-27 08:55:14 UTC ---
The scale factor is applied to F editing, but it shouldn't. See Fortran 2008:

NOTE 10.20
The scale factor has no effect on output unless the magnitude of the datum to
be edited is outside the range that permits effective use of F editing.

    print "(rc,1p,g15.4e2,'<')", 0.1234 ! 1.2340E-01 expected 0.1234
    print "(rc,g15.4e2,'<')", 0.1234 ! 0.1234

Additionally, there is a strange digit mixup in this case:
    print "(rc,-1p,g15.4e2,'<')", 0.1234 ! 1.0234 expected 0.1234



More information about the Gcc-bugs mailing list