We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 258e1f5 commit 55f83d0Copy full SHA for 55f83d0
clang/lib/Sema/SemaTemplateDeduction.cpp
@@ -4413,8 +4413,7 @@ Sema::TemplateDeductionResult Sema::DeduceTemplateArguments(
4413
// the already deduced parameter.
4414
SmallVector<UnexpandedParameterPack, 2> Unexpanded;
4415
collectUnexpandedParameterPacks(ParamPattern, Unexpanded);
4416
- if (Unexpanded.size() == 0)
4417
- continue;
+ assert(Unexpanded.size() != 0 && "We must have an unexpanded pack\n");
4418
4419
std::optional<unsigned> ArgPosAfterSubstitution =
4420
PackScope.getSavedPackSize(getDepthAndIndex(Unexpanded[0]).second,
0 commit comments