[llvm-bugs] [Bug 48250] New: ICE in explicit instantiation of generic lambda operator()

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Nov 21 11:36:02 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48250

            Bug ID: 48250
           Summary: ICE in explicit instantiation of generic lambda
                    operator()
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ldalessandro 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

The index sequence seemed necessary to trigger the ICE.

> #include <utility>
> 
> int main() {
>     auto inner = []<std::size_t... Is>() { return 0; };
>     auto outer = [&]<std::size_t... Is>(std::index_sequence<Is...>) {
>         return inner.template operator()<Is...>();
>     };
>     return outer(std::make_index_sequence<5>());
> }

https://godbolt.org/z/njK79P

-- 
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/20201121/b16a9e1f/attachment.html>


More information about the llvm-bugs mailing list