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: unassignedclangb...@nondot.org
          Reporter: llvmbugbj...@fahller.se
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to