[llvm-bugs] [Bug 33863] New: _Atomic _Bool decrement gives infinite loop
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 20 10:55:35 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33863
Bug ID: 33863
Summary: _Atomic _Bool decrement gives infinite loop
Product: clang
Version: 4.0
Hardware: PC
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: mib.bugzilla at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
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)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170720/8fe10215/attachment.html>
More information about the llvm-bugs
mailing list