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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to