https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123408
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2026-01-11
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
I was trying to get a C++17 testcase but I could not as moving the lamdba out
into a templated variable, it worked.
Testcase without templated lamdbas and just generic ones (which is the same in
the end really; just less typing):
```
template <typename> constexpr int zero = 0;
template <auto> using int_alias = int;
template <typename Arg>
using inner = int_alias<[](auto) { return 0; }((Arg)0)>;
template <typename Arg>
constexpr int outer =
[](auto) { return zero<inner<Arg>>; }(0);
int main()
{
auto a = outer<int>;
}
```