This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18440] New: incorrect field width in format-free output of real*8 numbers
- From: "lipnikov at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2004 02:14:43 -0000
- Subject: [Bug fortran/18440] New: incorrect field width in format-free output of real*8 numbers
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Simple fortran program:
program test
real*8 a
real b
a = 3.1415926279290d0
write(*,*) a
b = a
write(*,*) b
stop
end
Output: 3.14159263
3.14159274
I guess that the default width for real*8 numbers
is 15. I got only 9.
--
Summary: incorrect field width in format-free output of real*8
numbers
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lipnikov at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org,lipnikov at hotmail dot
com
GCC build triplet: 3.4.3
GCC host triplet: 3.4.3
GCC target triplet: 3,4,4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18440