[llvm-bugs] [Bug 44848] New: C++20 template lambda calling another template lambda causes segfault

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 8 06:47:24 PST 2020


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: unassignedclangbugs at nondot.org
          Reporter: bruce.steger at mail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200208/ccd961ad/attachment-0001.html>


More information about the llvm-bugs mailing list