https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022

            Bug ID: 111022
           Summary: ES0.0E0 format gave ES0.dE0 output with d too high.
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john.harper at vuw dot ac.nz
  Target Milestone: ---

This 3-line Fortran program:

  print "(ES0.0E0)", -666e0
  print "(ES0.0E0)", -666d0
  end program

printed

-6.660000000E+2
-6.66000000000000000E+2

but I think it should have printed 

-7.E+2
-7.E+2

which is what ifort printed with the same program.

Reply via email to