[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
Wed Oct 9 14:05:40 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 @erichkeane I've changed the normalization to omit early returns and covered this case and several others - https://compiler-explorer.com/z/TMTo5s998. Are there any additional cases that should be covered? Thanks



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


More information about the cfe-commits mailing list