[clang] [Clang] fix overload resolution for object parameters with top-level cv-qualifiers in member functions (PR #110435)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 3 13:58:28 PDT 2024
================
@@ -1073,3 +1073,10 @@ int main() {
return foo[]; // expected-error {{no viable overloaded operator[] for type 'Foo'}}
}
}
+
+namespace GH100394 {
+struct C {
+ void f(this const C);
+ void f() const ; // ok
+};
----------------
cor3ntin wrote:
Here is a fun test
```
struct C {
void f(this const C);
void f(this volatile C) ;
};
(deprecated but should be handled nevertheless)
https://github.com/llvm/llvm-project/pull/110435
More information about the cfe-commits
mailing list