https://llvm.org/bugs/show_bug.cgi?id=23429
Bug ID: 23429
Summary: IBM Power8 (ppc64le): libstdc++ std::thread, when
compiled with clang, "pure virtual method called"
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
cat stdthreadbug.cpp
#include <thread>
int main()
{
std::thread t([](){});
t.join();
}
$clang++ -v
clang version 3.7.0 (trunk 236572)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
$clang++ -std=c++11 -pthread stdthreadbug.cpp -o stdthreadbug
$./stdthreadbug
pure virtual method called
terminate called without an active exception
Aborted
Note that this works:
cat stdthreadbugkludge.cpp
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
#include <thread>
int main()
{
std::thread t([](){});
t.join();
}
--
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