<div dir="ltr">Hello,<br><div><br></div><div>When compiling with a recent version of Clang, the following code</div><div><br></div><div>  std::signbit(-std::numeric_limits<double>::quiet_NaN())<br></div><div><br></div>

<div>returns true with optimizations disabled and false with optimizations enabled. Other compilers like GCC and older versions of Clang always return true as expected. Is it a bug or a feature?</div><div><br></div><div>
I'm using Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn).</div>
<div><br></div><div>Thanks,</div><div>Victor</div></div>