This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32554] New: [4.3 regression] Bug in P formatting
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2007 23:30:43 -0000
- Subject: [Bug fortran/32554] New: [4.3 regression] Bug in P formatting
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
the following code:
program gfcbug66
real(8) :: x = 1.0e-100_8
write (*,'(1X,2E12.3)') x, 2 * x
write (*,'(1X,1P,2E12.3)') x, 2 * x ! Second printed number is wrong
end program gfcbug66
produces:
0.100E-99 0.200E-99
1.000-100 2.000E-10
but it should be
0.100E-99 0.200E-99
1.000-100 2.000-100
This used to work before and with 4.2.
Cheers,
-ha
--
Summary: [4.3 regression] Bug in P formatting
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32554