complex arithmetic in gcc (and various standards)
Paolo Carlini
pcarlini@suse.de
Mon Oct 2 10:56:00 GMT 2006
Hi Jan,
> Hello,
>
>I was recently bitten by gcc's handling of complex multiplication. My program
>is in C++, but since std::complex<T> uses C99's complex types, my questions
>below apply to C as well.
>
I only want to say more explicitely that apparently both C and C++ are
affected, and in *inconsistent* ways wrt optimization. In other terms,
it looks like the front-ends are also involved: e.g., compare the
original testcase in libstdc++/28408 vs the C version I added in Comment #7.
Paolo.
More information about the Gcc
mailing list