Issue |
125164
|
Summary |
HeuristicResolver incorrectly applies const-checking to static methods called through an instance
|
Labels |
new issue
|
Assignees |
HighCommander4
|
Reporter |
HighCommander4
|
In the following code:
```c++
template <typename T>
struct Waldo {
static void find();
};
template <typename T>
void foo(const Waldo<T>& t) {
t.find();
}
```
HeuristicResolver fails to resolve the call to `t.find()` to `Waldo::find()` because it's applying const-checking even though that doesn't apply to static methods (even if you call them through an instance, as in this example).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs