[llvm-bugs] [Bug 26105] New: nested lambda expressions crashes compiler

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 10 12:26:46 PST 2016


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

            Bug ID: 26105
           Summary: nested lambda expressions crashes compiler
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: donaner at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ cat lam.cpp 
int f() {
  auto add = [] (int x) { return ([x] (int y) { return x + y; }); };
  return add(3)(4);
}

$ clang++ -std=c++11 lam.cpp 
clang-3.7: error: unable to execute command: Segmentation fault (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
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/20160110/2f80af0f/attachment.html>


More information about the llvm-bugs mailing list