[PATCH] D128095: [clang] Improve diagnostics for expansion length mismatch

Matheus Izvekov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 15 15:09:21 PDT 2022


mizvekov added inline comments.


================
Comment at: clang/lib/Sema/SemaTemplateDeduction.cpp:746
         unsigned Depth, Index;
-        std::tie(Depth, Index) = getDepthAndIndex(Unexpanded[I]);
+        std::tie(Depth, Index) = getDepthAndIndex(U);
         if (Depth == Info.getDeducedDepth())
----------------
shafik wrote:
> Structured bindings maybe?
Sure, they weren't an option back when this patch was first submitted :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128095/new/

https://reviews.llvm.org/D128095



More information about the cfe-commits mailing list