[Bug libfortran/17871] New: libgfortran, g77: regression, P edit descriptor, funny output

anlauf at hep dot tu-darmstadt dot de gcc-bugzilla@gcc.gnu.org
Wed Oct 6 21:27:00 GMT 2004


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



More information about the Gcc-bugs mailing list