// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s template concept C = true; struct A { template void f(); }; auto L = []{}; template class Friends { template friend void A::f(); template friend void decltype(L)::operator()(); // expected-error {{a member of a lambda should not be the target of a friend declaration}} };