Issue |
122892
|
Summary |
cannot compile this l-value _expression_ yet
|
Labels |
new issue
|
Assignees |
|
Reporter |
egorpugin
|
```
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();
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs