This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57399] New: errors in formatted print of floating numbers
- From: "custos.mentis at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 May 2013 13:15:59 +0000
- Subject: [Bug fortran/57399] New: errors in formatted print of floating numbers
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57399
Bug ID: 57399
Summary: errors in formatted print of floating numbers
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: custos.mentis at gmail dot com
A simple test of formated print
write(*,"(1e10.2,1x,f8.2,1x,1pe10.2,1x,f8.2)") 100.0, 100.0, 100.0, 100.0
results in wrong output:
0.10E+03 100.00 1.00E+02 1000.00
-------
All four numbers should be equal 100.0, but the last one is 10 x larger!
I am using GNU Fortran (Gentoo 4.6.3 p1.13, pie-0.5.2) 4.6.3