<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - IBM Power8 (ppc64le): libstdc++ std::thread, when compiled with clang, "pure virtual method called""
   href="https://llvm.org/bugs/show_bug.cgi?id=23429">23429</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>IBM Power8 (ppc64le): libstdc++ std::thread, when compiled with clang, "pure virtual method called"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++11
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>danilo.piparo@cern.ch
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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();
}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>