public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/26985]  New: incorrect matmul result
@ 2006-04-02 10:47 fxcoudert at gcc dot gnu dot org
  2006-04-02 10:49 ` [Bug libfortran/26985] " fxcoudert at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-04-02 10:47 UTC (permalink / raw)
  To: gcc-bugs

$ cat fail.f90 
  implicit none
  real(8) :: a(2,9), b(9,7), c(2,7)
  integer :: i, j

  a = 0.d0
  b = 0.d0
  c = 1789789.d0
  c(:,1:7:2) = matmul(a,b(:,1:7:2))
  do i = 1, 7
    print *, c(:,i)
  end do
  end
$ ifort fail.f90 && ./a.out   
  0.000000000000000E+000  0.000000000000000E+000
   1789789.00000000        1789789.00000000     
  0.000000000000000E+000  0.000000000000000E+000
   1789789.00000000        1789789.00000000     
  0.000000000000000E+000  0.000000000000000E+000
   1789789.00000000        1789789.00000000     
  0.000000000000000E+000  0.000000000000000E+000
$ gfortran fail.f90 && ./a.out
   0.00000000000000        0.00000000000000     
   0.00000000000000        0.00000000000000     
   0.00000000000000        0.00000000000000     
   0.00000000000000        0.00000000000000     
   1789789.00000000        1789789.00000000     
   1789789.00000000        1789789.00000000     
   1789789.00000000        1789789.00000000


-- 
           Summary: incorrect matmul result
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-05-07 15:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-02 10:47 [Bug libfortran/26985] New: incorrect matmul result fxcoudert at gcc dot gnu dot org
2006-04-02 10:49 ` [Bug libfortran/26985] " fxcoudert at gcc dot gnu dot org
2006-04-02 18:41 ` tkoenig at gcc dot gnu dot org
2006-04-02 19:21 ` tkoenig at gcc dot gnu dot org
2006-04-29 16:31 ` tkoenig at gcc dot gnu dot org
2006-05-05 11:08 ` fxcoudert at gcc dot gnu dot org
2006-05-05 11:08 ` fxcoudert at gcc dot gnu dot org
2006-05-05 21:34 ` [Bug libfortran/26985] [4.1 only] " fxcoudert at gcc dot gnu dot org
2006-05-07 13:03 ` fxcoudert at gcc dot gnu dot org
2006-05-07 15:50 ` [Bug libfortran/26985] " 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).