[LLVMbugs] [Bug 10945] New: can't compile boost::thread with -std=c++0x

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 16 23:35:50 PDT 2011


           Summary: can't compile boost::thread with -std=c++0x
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: miles at gnu.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

The following simple source file, "t.cc":

  #include <boost/thread.hpp>

Compile successfully using "clang++ -c t.cc", but fails to compile if I use
"clang++ -c -std=c++0x t.cc".  It compiles successfully with all the versions
of g++ I tried (using -std=c++0x), 4.5, 4.6, 4.7-20110914.

I'll add attachments for the pre-processed source file, and the error output

boost threads is Debian version 1.46.1-7.

[I guess it's using libstdc++ from gcc 4.6.1, as that's the default system

Clang++ version:

clang version 3.0 (http://llvm.org/git/clang.git
Target: x86_64-unknown-linux-gnu
Thread model: posix



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