[Bug libstdc++/20758] operator-(const T&, const complex<T>&) vs operator-(const complex<T>&, const complex<T>&)
kreckel at ginac dot de
gcc-bugzilla@gcc.gnu.org
Fri Apr 8 08:23:00 GMT 2005
------- Additional Comments From kreckel at ginac dot de 2005-04-08 08:23 -------
(In reply to comment #17)
> Yes, I was referring to the draft N481, but actually N490 is more recent (no
> changes in the area at issue) both are available from
>
> http://www.open-std.org/JTC1/SC22/WG11/docs/documents
Thank you. It appeards like the current implementation is conforming.
Well, the current behaviour makes perfect sense if we assume that a floating
point value has exact zero imaginary part. Conceptually, now we have three
zeros: -0.0, the curiously half baked mixture of +0.0 and 0.0 and also an exact
zero. Crazy.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20758
More information about the Gcc-bugs
mailing list