This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]