This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/17871] New: libgfortran, g77: regression, P edit descriptor, funny output
- From: "anlauf at hep dot tu-darmstadt dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2004 21:27:30 -0000
- Subject: [Bug libfortran/17871] New: libgfortran, g77: regression, P edit descriptor, funny output
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
I get strange output with gfortran and g77 with the following code:
write (*,'(3p,2e15.3)') 0.0, 1.0
end
Running the g77 compiled code gives:
000.0E+00 100.0E-02
while the gfortran compiled code gives:
000.0E-03 100.0E-02
While the second number (1.0) prints OK in both cases,
the first (0.0) looks really strange to me. Other compilers give:
0.0E+00 100.0E-02
which looks most natural to me.
I cannot find anything in the standard prohibiting the result of g77
or even that of gfortran, but I consider both as "surprising".
Cheers,
-ha
--
Summary: libgfortran, g77: regression, P edit descriptor, funny
output
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at hep dot tu-darmstadt dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17871