[llvm-bugs] [Bug 42915] New: ICE on lambdas returning lambdas 3 deep, when using move or fwd ref
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Aug 7 06:36:44 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42915
Bug ID: 42915
Summary: ICE on lambdas returning lambdas 3 deep, when using
move or fwd ref
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++17
Assignee: unassignedclangbugs at nondot.org
Reporter: llvmbugbjorn at fahller.se
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Created attachment 22349
--> https://bugs.llvm.org/attachment.cgi?id=22349&action=edit
Example code causing ICE
The attached file crashes clang++-8.0.0, and trunk (367966).
The crashes are on the lines with a comment '// E'. If those lines are
commented out, it compiles.
There are two ways to make it compile. Remove '= std::move(function)' under the
comment '// 1' or remove the forwarding reference '&&' under the comment '// 2'
godbolt link: https://gcc.godbolt.org/z/DXqN06
--
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/20190807/d2a2ab32/attachment-0001.html>
More information about the llvm-bugs
mailing list