public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/47285] New: G format outputs wrong number of characters when decimal supplied in literal
@ 2011-01-14  0:03 brendanarnold at gmail dot com
  2011-01-14  7:16 ` [Bug libfortran/47285] " jvdelisle at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: brendanarnold at gmail dot com @ 2011-01-14  0:03 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: brendanarnold@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 '*****'


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-02-02 18:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-14  0:03 [Bug libfortran/47285] New: G format outputs wrong number of characters when decimal supplied in literal brendanarnold at gmail dot com
2011-01-14  7:16 ` [Bug libfortran/47285] " jvdelisle at gcc dot gnu.org
2011-01-14  7:22 ` burnus at gcc dot gnu.org
2011-01-14 20:04 ` jvdelisle at gcc dot gnu.org
2011-01-22 14:26 ` jvdelisle at gcc dot gnu.org
2011-01-27  3:22 ` jvdelisle at gcc dot gnu.org
2011-01-27  3:32 ` jvdelisle at gcc dot gnu.org
2011-01-28 23:34 ` jvdelisle at gcc dot gnu.org
2011-02-02 18:04 ` dnovillo at gcc dot gnu.org
2011-02-02 18:21 ` dnovillo at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).