================
@@ -5218,7 +5218,17 @@ bool TreeTransform<Derived>::TransformTemplateArguments(
       std::optional<ForgetSubstitutionRAII> ForgetSubst;
       if (Info.ExpandUnderForgetSubstitions)
         ForgetSubst.emplace(getDerived());
-      for (unsigned I = 0; I != *Info.NumExpansions; ++I) {
+
+      unsigned Start, End;
+      if (ExpansionIndex.has_value()) {
+        Start = *ExpansionIndex;
+        End = Start + 1;
----------------
erichkeane wrote:

TBH, I'm still not getting it.  That said, part of the subtly here I think is 
trying to do this with just a single ExpansionIndex thing, rather than causing 
this to be a separate code path.

https://github.com/llvm/llvm-project/pull/200185
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to