[Bug c++/28408] What should be value of complex<double>(1.0,0.0) *= -1?
pluto at agmk dot net
gcc-bugzilla@gcc.gnu.org
Wed Sep 6 19:19:00 GMT 2006
------- Comment #6 from pluto at agmk dot net 2006-09-06 19:18 -------
(In reply to comment #2)
> I think this difference is ultimately due to the existenxce of a separate *_O0
> version of tree_lower_complex, in tree-complex.c. Rth added it (as part of
> fixing 20610), I believe the generic version is right (-0), and I'm hoping
> he wants to have a look to this issue...
mathematically (x+yi)u = xu+yui.
we have x=1, y=0, u=-1, so the result is -1+(0*-1)i.
so, how c++ define the 0*-1 ?
--
pluto at agmk dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28408
More information about the Gcc-bugs
mailing list