[Bug c++/95434] New: ICE for CTAD in generic lambda within variadic lambda

johelegp at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat May 30 05:34:30 GMT 2020


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>();
}

```


More information about the Gcc-bugs mailing list