------- Comment #11 from joseph at codesourcery dot com 2006-09-07 01:23 ------- Subject: Re: What should be value of complex<double>(1.0,0.0) *= -1?
On Thu, 7 Sep 2006, pcarlini at suse dot de wrote: > I'm re-reading the various floating-point standards and Annexes and I think > this issue may turn out to be a not-a-bug. Whether those standards make sense > it's another matter ;) So, what I'm reading: C99, F.8.2 says that 0 * x and > 0.0 > are equivalent, i.e., tranforming 0 * x to 0.0 is allowed (insofar x is not a > NaN, -0, or infinite). Therefore, it seems, the optimizers of a C / C++ F.8 is *illustrative* of transformations that are *not* permitted. It doesn't permit anything. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28408