<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 _Bool decrement gives infinite loop"
   href="https://bugs.llvm.org/show_bug.cgi?id=33863">33863</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>_Atomic _Bool decrement gives infinite loop
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

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

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

        <tr>
          <th>Reporter</th>
          <td>mib.bugzilla@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>clang -v
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
InstalledDir:
/site/spt/usr8/mblower/bin/clang+llvm-4.0.1-x86_64-apple-macosx10.9.0/bin
sptem26:_test mblower$ cat tm.c
void
test_minus (void)
{
 _Atomic _Bool a = 0;
 _Bool b = 1;
 _Atomic _Bool c = 1;
 a -= b; // Test completes OK if this line is removed.
 a -= c;
}

int main(void)
{
test_minus ();
}

I adapted this testcase from gcc testsuite. Execution of the 2nd decrement
doesn't complete. It works OK without the first decrement.
--Melanie Blower (I work for Intel on the Intel c++ compiler)</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>