This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/47284] New: G format outputs wrong number of asterixes
- 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:35:29 +0000
- Subject: [Bug libfortran/47284] New: G format outputs wrong number of asterixes
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47284
Summary: G format outputs wrong number of asterixes
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 simple program
PROGRAM FOO
WRITE(*,100) -0.1
100 FORMAT(G5.1)
STOP
END
Result is a single '* ' and not '*****' as expected
Could test for asterix in previously written data before outputting blanks in
line 687 of libgfortran/io/write_float.def, if they are present then output
asterix instead of blanks.