This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
However it's still not clear to me why this inconsistency doesn't happen with
clang or icc, for example. I'm not convinced we are doing our job in the best
way and I don't think we are going to make users happy. It's pretty easy to
internally call in the c++ library or in user code another builtin which does
produce a -inf without the user knowing and then passes it to a function like
exp. If some of our builtins produce something which our other builtins aren't
able to handle consistently we are looking for trouble.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]