// { dg-do compile { target c++20 } } template struct A { static constexpr auto n = N; }; template constexpr auto g(A<[]{return N;}> a) { return a.n(); } static_assert(g<42>({}) == 42);