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 fortran/31833] FAIL: gfortran.dg/integer_exponentiation_3.F90 at -O0 and above



------- Comment #3 from sje at cup dot hp dot com  2007-06-06 22:04 -------
Here is a cutdown test case, it looks like we have a roundoff difference
between the exponentiation done at compile time and the exponentiation done at
run time and thus a and b are not 'exactly the same'.  Maybe we should use the
approximate check instead of the exact check in this case.

subroutine check_c4 (a, b)
    complex(kind=4), intent(in) :: a, b
    print *, a
    print *, b
    if (a /= b) call abort()
end subroutine check_c4

program test
  complex(kind=4) :: c4
  c4 = (1.0,0.2)
  call check_c4(c4**9,(1.0,0.2)**9)

end program test


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


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


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