[llvm-bugs] [Bug 49501] New: Lambda template crashes with trailing return type containing IILE
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 9 16:07:14 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49501
Bug ID: 49501
Summary: Lambda template crashes with trailing return type
containing IILE
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Keywords: crash-on-invalid, new-feature
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: rileylevy95 at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Created attachment 24612
--> https://bugs.llvm.org/attachment.cgi?id=24612&action=edit
The .cpp file, the stderr, the build script,
Clang (commit sha 2d922de3af40) crashes from the following minimal example:
int main() {
return []<class T0 = int>(T0 x = 0)->decltype([&] { return x; }()) {
return [&] { return x; }();
}
();
}
--
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/20210310/d44efc1c/attachment.html>
More information about the llvm-bugs
mailing list