Skip to content

libstdc++ std::thread, when compiled with clang, "pure virtual method called" #13102

@llvmbot

Description

@llvmbot
Bugzilla Link 12730
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @Bigcheese,@DougGregor,@ismail,@rprichard

Extended Description

$ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions