[llvm-bugs] [Bug 25264] New: Segfault when using undefined variable in lambda that is assigned to std::function
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 20 09:42:08 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: gereon.kremer at cs.rwth-aachen.de
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151020/3e5db6bc/attachment.html>
More information about the llvm-bugs
mailing list