I am curious if anyone has been able to get clang++ to run std::async in linux at all. If so the process would be great. I have tried TOT + libc++, with stdc++ and also the recently released binaries. In no configuration can I get this to work. As recently reported (not by me) in another mail (lost now), the following fails :<div>

<br></div><div><div>#include <thread></div><div>   </div><div>   void f(){}</div><div>   </div><div>   int main() {</div><div>      std::thread t(f);</div><div>      t.join();</div><div>   }</div><div><br></div></div>

<div>compiled with </div><div><br></div><div>clang++ -std=c++11 thread.cc -o thread -pthread </div><div><br></div><div>output </div><div><br></div><div> ./thread <div>pure virtual method called</div><div>terminate called without an active exception</div>

<div>Aborted (core dumped)</div><div><br></div><div>using </div><div><br></div><div><div>clang++ --version</div><div>clang version 3.1 (tags/RELEASE_31/final)</div><div>Target: x86_64-unknown-linux-gnu</div><div>Thread model: posix</div>

</div><div><br></div><div>std::async seems to fail at runtime, I think this is due to abi issues but cannot be sure. </div><div><br></div>Best Regards<br>David Irvine<br><br>
</div>