public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18440] New: incorrect field width in format-free output of real*8 numbers
@ 2004-11-12 2:14 lipnikov at hotmail dot com
2004-11-12 2:41 ` [Bug fortran/18440] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: lipnikov at hotmail dot com @ 2004-11-12 2:14 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/18440] incorrect field width in format-free output of real*8 numbers
2004-11-12 2:14 [Bug fortran/18440] New: incorrect field width in format-free output of real*8 numbers lipnikov at hotmail dot com
@ 2004-11-12 2:41 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 2:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-12 02:40 -------
Fixed on the mainline by rewriting the whole fortran compiler:
3.14159262792900
3.141593
STOP 0
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18440
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-12 2:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-12 2:14 [Bug fortran/18440] New: incorrect field width in format-free output of real*8 numbers lipnikov at hotmail dot com
2004-11-12 2:41 ` [Bug fortran/18440] " pinskia at gcc dot gnu dot 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).