https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95434

            Bug ID: 95434
           Summary: ICE for CTAD in generic lambda within variadic lambda
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
  Target Milestone: ---

The following snippet ICEs. See https://godbolt.org/z/-fZVX4.
```C++
template <class T> struct type { T value; };
template <class T> type(T) -> type<T>;
void f()
{
    []<template <class> class... Ts>()
    {
        (..., []<template <class> class T>() {
            T{0};
        }.template operator()<Ts>());
    }
    .template operator()<type>();
}

```

Reply via email to