[llvm-bugs] [Bug 32707] New: Lambda noexcept specification segfaults when capturing variables
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 18 20:54:46 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32707
Bug ID: 32707
Summary: Lambda noexcept specification segfaults when capturing
variables
Product: libc++
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: eric at efcs.ca
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
The following code asserts trying to `cast<T>(p)` to an incompatible type in
Sema::tryCaptureVariable:SemaExpr.cpp:14026:
> CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FSI);
Reproducer:
// clang++ -fsyntax-only -std=c++1z test.cpp
int f(...) { return 0; }
int main() {
[](auto arg) noexcept(noexcept(f(arg))) { }(42);
}
--
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/20170419/ca188622/attachment.html>
More information about the llvm-bugs
mailing list