https://bugs.llvm.org/show_bug.cgi?id=34706
Bug ID: 34706
Summary: segfault/deadlock with default lambda argument to
generic lambda
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++14
Assignee: unassignedclangb...@nondot.org
Reporter: diagonaldev...@gmail.com
CC: llvm-bugs@lists.llvm.org
#include <functional>
int main(int argc, char *argv[])
{
auto warning = [](
auto point,
std::function<void()> additional_output = []{}
) { };
warning(0.0);
}
The outcome of compilation is nondeterministic.
On my machine, compiling it 100 times, I got:
- 86 times: compiler segfault (see attachments)
- 11 times: successful compilation
- 3 times: compiler deadlocks? No output, have to hit Ctrl-C to abort
It seems (but I am not certain due to the nondeterministism)
that any of the following modifications to the test input cause
it to stop reproducing the deadlock/segfault:
- Changing 'point' to 'double'
- Changing 'additional_output' to 'auto'
- Changing the call to 'warning(0.0, []{});'
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs