[clang] [Clang] fix overload resolution for object parameters with top-level cv-qualifiers in member functions (PR #110435)

Oleksandr T. via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 4 07:19:00 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
+};
----------------
a-tarasyuk wrote:

@cor3ntin thanks for the additional case, I'll take a look., it seems the current implementation doesn't support it https://compiler-explorer.com/z/TYdvG1PsK

https://github.com/llvm/llvm-project/pull/110435


More information about the cfe-commits mailing list