[LLVMbugs] [Bug 21336] New: std::polar not working
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 22 02:21:47 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21336
Bug ID: 21336
Summary: std::polar not working
Product: libc++
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: hps at selasky.org
CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
Classification: Unclassified
cat << EOF > testcomplex.cpp
#include <iostream>
#include <complex>
int main ()
{
double a = -0.34375;
double b = -0.785398;
std::cout << std::polar(a,b) << '\n';
return 0;
}
EOF
clang++ testcomplex.cpp
./a.out
(-0.243068,0.243068)
clang++ -stdlib=libc++ testcomplex.cpp
./a.out
(nan,nan)
--HPS
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141022/d04d0772/attachment.html>
More information about the llvm-bugs
mailing list