<html>
    <head>
      <base href="http://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 --- - std::future causes 'Illegal instruction'"
   href="http://llvm.org/bugs/show_bug.cgi?id=15483">15483</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>std::future causes 'Illegal instruction'
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>jobstz@yahoo.de
          </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>Created <span class=""><a href="attachment.cgi?id=10161" name="attach_10161" title="Test case">attachment 10161</a> <a href="attachment.cgi?id=10161&action=edit" title="Test case">[details]</a></span>
Test case

I have found that virtually any use of std::future fails to work on my machine
using Mac OS X 10.6.8 with the c++ headers/library of gcc 4.7.1.

Compiling this simple test case works, but running it causes 'Illegal
instruction'. With g++ it compiles and runs fine.

Compilation command was:
"~/usr/bin/clang++ --std=c++11 bla.cpp -o bla"
and it was run simply using:
"./bla"

clang++ -v outputs:
clang version 3.2 (tags/RELEASE_32/final)
Target: i386-apple-darwin10.8.0
Thread model: posix</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>