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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 3 14:15:57 PDT 2024


================
@@ -1511,6 +1511,9 @@ static bool IsOverloadOrOverrideImpl(Sema &SemaRef, FunctionDecl *New,
       auto NewObjectType = New->getFunctionObjectParameterReferenceType();
       auto OldObjectType = Old->getFunctionObjectParameterReferenceType();
 
+      if (NewObjectType.isConstQualified() != OldObjectType.isConstQualified())
----------------
erichkeane wrote:

This probably means all of the 3 qualfiers (or at least, volatile as well).

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


More information about the cfe-commits mailing list