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 2cb3e54 commit 88beac3Copy full SHA for 88beac3
clang/lib/Sema/SemaTemplateDeduction.cpp
@@ -857,6 +857,8 @@ class PackDeductionScope {
857
if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(
858
TemplateParams->getParam(Index))) {
859
if (!NTTP->isExpandedParameterPack())
860
+ // FIXME: CWG2982 suggests a type-constraint forms a non-deduced
861
+ // context, however it is not yet resolved.
862
if (auto *Expansion = dyn_cast<PackExpansionType>(
863
S.Context.getUnconstrainedType(NTTP->getType())))
864
ExtraDeductions.push_back(Expansion->getPattern());
0 commit comments