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

            Bug ID: 50192
           Summary: Frontend crash when decomposing array
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++17
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

clang compiler crashes on the following:
https://godbolt.org/z/ecarnE7no
```
template<typename>
struct S
{
    void f()
    {
        for (auto [news, olds] : (int[2][2]){{1,2}, {3,4}})
        {
            news = olds;
        }
    }
};

int main()
{
    S<int> s;
    s.f();
}
```

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

Reply via email to