================
@@ -454,6 +462,11 @@ Sema::DiagnoseUnexpandedParameterPacks(SourceLocation Loc,
};
if (llvm::any_of(CSI->LocalPacks, DeclaresThisPack))
ParamPackReferences.push_back(Pack);
----------------
babadany2999 wrote:
You're right. `DiagnoseUnexpandedParameterPacks` already handles this case and
should not have special handling for a structured binding pack(s). I've
identified though, that the local pack does not contain the structured binding
decl when it should, and found that it is not being pushed after creation
within `ActOnDecompositionDeclarator` which lead to it being skipped from being
pushed through to `ParamPackReferences` when it should be.
https://github.com/llvm/llvm-project/pull/214716
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits