public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/17871] New: libgfortran, g77: regression, P edit descriptor, funny output
@ 2004-10-06 21:27 anlauf at hep dot tu-darmstadt dot de
  2004-10-07 13:07 ` [Bug libfortran/17871] " reichelt at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2004-10-06 21:27 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-04-20  6:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-06 21:27 [Bug libfortran/17871] New: libgfortran, g77: regression, P edit descriptor, funny output anlauf at hep dot tu-darmstadt dot de
2004-10-07 13:07 ` [Bug libfortran/17871] " reichelt at gcc dot gnu dot org
2004-10-07 15:41 ` tobi at gcc dot gnu dot org
2005-01-06 14:41 ` tobi at gcc dot gnu dot org
2005-03-13 19:13 ` tobi at gcc dot gnu dot org
2005-03-16 13:24 ` [Bug libfortran/17871] libgfortran, g77: regression, zero has non-zero exponent fxcoudert at gcc dot gnu dot org
2005-03-16 13:50 ` anlauf at hep dot tu-darmstadt dot de
2005-03-16 14:02 ` fxcoudert at gcc dot gnu dot org
2005-03-16 14:31 ` tobi at gcc dot gnu dot org
2005-04-20  2:17 ` pinskia at gcc dot gnu dot org
2005-04-20  6:51 ` fxcoudert 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).