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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs