[llvm-bugs] [Bug 45476] New: _Atomic struct can hang compiler

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 8 10:30:02 PDT 2020


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

            Bug ID: 45476
           Summary: _Atomic struct can hang compiler
           Product: new-bugs
           Version: 9.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: vtjnash at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Running this:
```
$ clang-9 -x c++ -S - -std=c++11
typedef signed char int8_t;
struct i8_3 {
    int8_t a;
    int8_t b;
    int8_t c;
};

_Atomic struct i8_3 a;
void jwn1() {
    a = i8_3{1, 2, 3};
}

int8_t jwn2() {
    return a.a + a.b + a.c;
}
```
The compile never finishes. Possibly similar to #14442?

-- 
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/20200408/1ab4d7a7/attachment.html>


More information about the llvm-bugs mailing list