https://bugs.llvm.org/show_bug.cgi?id=41033

            Bug ID: 41033
           Summary: problem with _Atomic type determination and
                    compatibility for statement expressions - C mode
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: mib.bugzi...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

I see this problem for expressions in initializatin, assignment, and parameter
passing, the test case is cut down from builds of open source applications like
ffmpeg and a couple others, using gcc8 stdatomic.h

Here's a test case
_Atomic(int) ai;
int fn1 ()
{
    int j = ai; // This is OK
    int i = ({ 1; ai;});  // This gets an error, initializing int with
incompatible type
//    i = ai;
//    i = ({ 1; ai;});
}

--Melanie Blower (I work for Intel on the C++ compiler)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to