<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 --- - atomic_add_fetch"
   href="http://llvm.org/bugs/show_bug.cgi?id=16650">16650</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>atomic_add_fetch
          </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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tatraian@deverto.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I cannot compile libstdc++'s atomic library with long long type on 32 bit
machine.

So the following code cannot be compiled:

    #include <atomic>

    int main()
    {
      std::atomic<long long> l(0);
      ++l;
      return 0;
    }

With the following error:
    clang++ -std=c++11 atomic.cpp
    In file included from atomic.cpp:1:
    In file included from
/usr/lib/gcc/i486-linux-gnu/4.7/../../../../include/c++/4.7/atomic:41:
   
/usr/lib/gcc/i486-linux-gnu/4.7/../../../../include/c++/4.7/bits/atomic_base.h:369:16:
error: cannot compile this atomic
          library call yet
          { return __atomic_add_fetch(&_M_i, 1, memory_order_seq_cst); }
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.</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>