[llvm-bugs] [Bug 25475] New: Abort with recursive C++14 polymorphic lambda

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 10 08:45:55 PST 2015


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

            Bug ID: 25475
           Summary: Abort with recursive C++14 polymorphic lambda
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pkeir at outlook.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15258
  --> https://llvm.org/bugs/attachment.cgi?id=15258&action=edit
Compiling the attached code crash the front-end.

The following code produces an abort following an assertion failure in
SemaTemplateInstantiate.cpp. I'm using 64-bit Ubuntu 15.04 (vivid), and clang
version 3.8.0 (trunk 252425). GCC 4.9.2 compiles and runs.

clang++ -std=c++14 rec_lam_clang.cpp

int main(int argc, char *argv[])
{
  const auto a = [](const auto b, const auto x)
  {
    if (x)
      return;
    b(b,"dd");
  };
  a(a,1);

  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/20151110/6d776bf8/attachment.html>


More information about the llvm-bugs mailing list