// PR c++/123665 // { dg-do compile { target c++20 } } // A more elaborate version of lambda-targ22.C. template struct W { }; template{}; })> struct A { using type = V; }; template auto f() { return [](U) { return typename A::type{}(true); }(0); } using type = decltype(f()); using type = W;