https://llvm.org/bugs/show_bug.cgi?id=25264
Bug ID: 25264
Summary: Segfault when using undefined variable in lambda that
is assigned to std::function
Product: clang
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 15124
--> https://llvm.org/bugs/attachment.cgi?id=15124&action=edit
working example
I use clang 3.7.0 on Arch Linux.
The attached source file provokes the following behavious in clang:
First it complains about the undeclared identifier j. (That is indeed an error)
Then it crashes.
Note that this crash does *not* occur:
- if the std::function-type is replaced by auto.
- if the error is fixed, i.e. j is replaced by i.
--
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