public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17927] New: Math error in simple divide operation
@ 2004-10-11  5:18 jvdelisle at verizon dot net
  2004-10-11  5:28 ` [Bug fortran/17927] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jvdelisle at verizon dot net @ 2004-10-11  5:18 UTC (permalink / raw)
  To: gcc-bugs

The following code produces erroneous results with:

GNU Fortran 95 (GCC 4.0.0 20041010 (experimental))
Copyright (C) 2003 Free Software Foundation, Inc.

program real_test

real(kind=4) :: little
real(kind=8) :: big

little=1.0/3.0
big=2.0/3.0

print *, little
print *, big

print *, '1/3 and 2/3?'

end program real_test

The output is:

  0.3333333
  0.666666686534882
 1/3 and 2/3?

-- 
           Summary: Math error in simple divide operation
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jvdelisle at verizon dot net
                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=17927


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

end of thread, other threads:[~2005-01-06 14:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-11  5:18 [Bug fortran/17927] New: Math error in simple divide operation jvdelisle at verizon dot net
2004-10-11  5:28 ` [Bug fortran/17927] " pinskia at gcc dot gnu dot org
2004-10-11 15:54 ` tobi at gcc dot gnu dot org
2004-10-11 16:00 ` tobi at gcc dot gnu dot org
2004-10-12  4:57 ` jvdelisle at verizon dot net
2004-10-12  6:55 ` anlauf at hep dot tu-darmstadt dot de
2004-10-12 21:26 ` tobi at gcc dot gnu dot org
2004-10-21 15:25 ` tobi at gcc dot gnu dot org
2005-01-06 14:27 ` tobi 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).