[LLVMbugs] [Bug 12730] New: libstdc++ std::thread, when compiled with clang, "pure virtual method called"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 2 14:12:22 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12730
Bug #: 12730
Summary: libstdc++ std::thread, when compiled with clang, "pure
virtual method called"
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: cmaloney at tagged.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
$cat thread.cc
#include <thread>
void f(){}
int main()
{
std::thread t(f);
t.join();
}
$clang++ -v
clang version 3.2 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$clang++ -std=c++11 thread.cc -o thread -pthread
$./thread
pure virtual method called
terminate called without an active exception
Aborted
--
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