TPPPP72 wrote:
@zwuis I think his explanation is reasonable to some extent, but such a "fix"
does not address the root cause.
---
For code
```cpp
void f() {
struct S {
void f2(const char *s = __FUNCTION__){}
};
}
```
We can easily expect that 's' should be "f", right?
---
But what if I wrote code like this?
```cpp
void f() {
[] {
struct S {
void f2(const char *s = __FUNCTION__){}
};
};
}
```
Such a modification clearly cannot guarantee correctness.
https://github.com/llvm/llvm-project/pull/213556
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits