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

            Bug ID: 44848
           Summary: C++20 template lambda calling another template lambda
                    causes segfault
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

link: https://godbolt.org/z/C7dLsL

Clang crashes when compiling the code below:

int main() {
    auto lambda1 = [&]<bool B>() {

    };

    auto lambda2 = [&]<bool B>() {
        lambda1.operator()<B>();
    };

    lambda2.operator()<true>();

    return 0;
}

It works fine with g++.

-- 
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