Skip to content

can't compile boost::thread with -std=c++0x #11317

@llvmbot

Description

@llvmbot
Bugzilla Link 10945
Resolution INVALID
Resolved on Oct 10, 2011 14:15
Version trunk
OS Linux
Attachments Pre-processed source for input "t.cc" (compressed), Error output from compiling with "clang++ -c -std=c++0x t.cc"
Reporter LLVM Bugzilla Contributor
CC @dwblaikie,@DougGregor

Extended Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++11invalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions