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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to