[llvm-bugs] [Bug 49743] New: 3 nested auto lambda invocations crashes the parser

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 27 10:47:44 PDT 2021


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

            Bug ID: 49743
           Summary: 3 nested auto lambda invocations crashes the parser
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: matthewjbarichello at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Created attachment 24701
  --> https://bugs.llvm.org/attachment.cgi?id=24701&action=edit
Compiler crash backtrace

See attachment for compiler backtrace.

Affected versions:
 - trunk
 - 11.0.1
 - 11.0.0
 - 10.0.1
 - 10.0.0
 - 9.0.1
 - 9.0.0

Driver cmdline:
Note: For versions that do not support -std=c++20, -std=c++2a was used.

clang++ -Xclang -disable-llvm-passes -std=c++20

Code:
Note: Reduction attempts with creduce crashed and emitted incomplete code.

int main() {
 auto const l0 = []<typename T>() {};
 auto const l1 = []<typename T>(auto op) {
  op.template operator()<T>();
 };
 auto const l2 = [&]<typename T>() {
  l0.template operator()<T>();
 };
 l1.template operator()<int>(l2);
 return 0;
}

-- 
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/20210327/4b0426b6/attachment.html>


More information about the llvm-bugs mailing list