// PR c++/94645 // { dg-do compile { target concepts } } struct unordered_map { int cend() const noexcept; }; template concept HasMapInterface = requires(a t) { t.cend(); }; template requires HasMapInterface struct l { friend void foo(l opt) { ([]() {})(); } }; struct p { static unordered_map map(); }; void g(l

*y) { foo(*y); }