[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 20 01:59:44 PDT 2023


================
@@ -7688,7 +7688,7 @@ bool Sema::CheckNonDependentConversions(
     QualType ParamType = ParamTypes[I + Offset];
     if (!ParamType->isDependentType()) {
       unsigned ConvIdx = PO == OverloadCandidateParamOrder::Reversed
-                             ? 0
+                             ? Args.size() - 1 - (ThisConversions + I)
----------------
ilya-biryukov wrote:

Is this a separate bug? Do you have a code example that manifests it independently?
I suggest to move this to a separate commit with its own test if it's not directly connected.

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


More information about the cfe-commits mailing list