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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to