[Bug middle-end/57974] std::pow(std::complex<long double>(0),1) returns (-nan,-nan)

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 25 15:22:00 GMT 2013


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |uros at gcc dot gnu.org

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Uros, can you help me with this annoying wrong-code?

I suspect the back end could be also involved because it happens only for long
double and I didn't see anything special for long double in builtins.c

(if isn't clear enough, the expression in Comment #1 or #2 evaluates to -nan
instead of 0)



More information about the Gcc-bugs mailing list