[llvm-bugs] [Bug 28951] New: Assignment from _Atomic modify gets incorrect error message
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 12 07:54:33 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28951
Bug ID: 28951
Summary: Assignment from _Atomic modify gets incorrect error
message
Product: clang
Version: 3.9
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: mib.bugzilla at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
clang -c -std=c11 tm.c
tm.c:9:9: error: assigning to 'int' from incompatible type '_Atomic(int)'
result = a -= b;
^ ~~~~~~
1 error generated.
-bash-4.2$ cat tm.c
void
test_minus (void)
{
//_Atomic
int result;
_Atomic int a = 5;
int b = 7;
result = a; // this is ok, type of rhs is int
result = a -= b; // this gets the error
}
--
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/20160812/2ccd0477/attachment.html>
More information about the llvm-bugs
mailing list