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

           Summary: G format outputs wrong number of characters when
                    decimal supplied in literal
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: brendanarn...@gmail.com


Try this program,


       PROGRAM FOO
       WRITE(*,100) -10000.

100    FORMAT(G5.5E5)

       STOP
       END

This outputs '-10000.' i.e. is 7 characters when it should be 5 c.f. this
program


       PROGRAM FOO
       WRITE(*,100) -10000

100    FORMAT(G5.5E5)

       STOP
       END

Note the decimal point in the literal. This outputs '*****'

Reply via email to