public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55539] New: [4.8 Regression] -fno-sign-zero may generate wrong formatted output
@ 2012-11-29 22:11 anlauf at gmx dot de
  2012-11-30 21:24 ` [Bug fortran/55539] " dominiq at lps dot ens.fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: anlauf at gmx dot de @ 2012-11-29 22:11 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55539

             Bug #: 55539
           Summary: [4.8 Regression] -fno-sign-zero may generate wrong
                    formatted output
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: anlauf@gmx.de


The code

program gfcbug120
  implicit none
  real(4) :: x = -1.2e-3
  real(8) :: y = -1.2e-3
  print *, x, y
  print '(7f10.3)', x, y
end program gfcbug120

incorrectly prints

  -1.20000006E-03  -1.2000000569969416E-003
     0.001     0.001

with -fno-sign-zero; the correct result would be

  -1.20000006E-03  -1.2000000569969416E-003
    -0.001    -0.001

This works with 4.7.


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

end of thread, other threads:[~2012-12-25 22:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-29 22:11 [Bug fortran/55539] New: [4.8 Regression] -fno-sign-zero may generate wrong formatted output anlauf at gmx dot de
2012-11-30 21:24 ` [Bug fortran/55539] " dominiq at lps dot ens.fr
2012-11-30 21:48 ` [Bug fortran/55539] [4.8 Regression] -fno-sign-zero may generate output with the wrong sign burnus at gcc dot gnu.org
2012-12-11 22:33 ` anlauf at gmx dot de
2012-12-12 11:16 ` burnus at gcc dot gnu.org
2012-12-15 16:36 ` jb at gcc dot gnu.org
2012-12-15 16:48 ` jb at gcc dot gnu.org
2012-12-25 22:11 ` jb at gcc dot gnu.org
2012-12-25 22:22 ` jb at gcc dot gnu.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).