Description
clang++ -v
clang version 20.0.0git (https://github.com/llvm/llvm-project c047a5b3f6e2295dd74f1e8f17f1a023150b246c)
Target: x86_64-pc-windows-msvc
Thread model: posix
clang++ main.cpp -std=c++20
struct A {
void f() {
l(r);
}
static void r() {}
static auto l(auto &&f) {} // error
//static void l(auto &&f) {} // ok
};
int main() {
A k;
k.f();
}