// PR c++/109651 // { dg-do compile { target c++20 } } template auto f() { return [] class TT>(U, TT) { }; } template struct A { }; int main() { f()(0, A{}); }