[Bug libfortran/47285] New: G format outputs wrong number of characters when decimal supplied in literal
brendanarnold at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 14 00:03:00 GMT 2011
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 '*****'
More information about the Gcc-bugs
mailing list