http://llvm.org/bugs/show_bug.cgi?id=10945
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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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
files.
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
compiler.]
Clang++ version:
clang version 3.0 (http://llvm.org/git/clang.git
9bdbec17c3bc44aaa5ea88c62a958d47d1031016)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Thanks,
-Miles
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs