This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/47285] New: G format outputs wrong number of characters when decimal supplied in literal
- From: "brendanarnold at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Jan 2011 23:40:22 +0000
- Subject: [Bug libfortran/47285] New: G format outputs wrong number of characters when decimal supplied in literal
- Auto-submitted: auto-generated
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 '*****'