[LLVMbugs] [Bug 9205] New: cmath does not work with clang -std=c++0x or -std=c++93

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 12 14:36:32 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9205

           Summary: cmath does not work with clang -std=c++0x or
                    -std=c++93
           Product: libc++
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu


A simple:

#include <cmath>

does not work on mac os x 10.6, with clang -std=c++0x or clang -std=c++93. It
works fine with -std=gnu++0x and -std=gnu++93.

I had assumed that -std=c++0x was the 'natural' extension to get c++0x support.
I can see I should probably be using gnu++0x. That is an unfortunate choice of
naming (but probably clang's fault).

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list