https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116960
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |c++-lambda
Blocks| |107430
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>but should just error
Actually it should just warn.
Reduced testcase:
```
template<auto>
using Foo = decltype([](auto) { return 0; }(0));
template<typename...>
Foo<[] {}> foo() {}
auto t = foo();
```
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107430
[Bug 107430] [meta-bug] lambda in decltype