This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/57974] std::pow(std::complex<long double>(0),1) returns (-nan,-nan)
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Jul 2013 12:20:50 +0000
- Subject: [Bug middle-end/57974] std::pow(std::complex<long double>(0),1) returns (-nan,-nan)
- Auto-submitted: auto-generated
- References: <bug-57974-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57974
--- Comment #16 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Also, in practice, I think it's *very* hard to explain to the users why long
double is so special, why the middle-end can't handle it in complete analogy
with float and double. And since clang and icc are *already* doing it,
apparently, you can't just tell them, vaguely, "it's very tough to implement"
or "performance would be horrible" or something similar.