Skip to content

Commit 88beac3

Browse files
committed
Add a note for CWG2982
1 parent 2cb3e54 commit 88beac3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Sema/SemaTemplateDeduction.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,8 @@ class PackDeductionScope {
857857
if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(
858858
TemplateParams->getParam(Index))) {
859859
if (!NTTP->isExpandedParameterPack())
860+
// FIXME: CWG2982 suggests a type-constraint forms a non-deduced
861+
// context, however it is not yet resolved.
860862
if (auto *Expansion = dyn_cast<PackExpansionType>(
861863
S.Context.getUnconstrainedType(NTTP->getType())))
862864
ExtraDeductions.push_back(Expansion->getPattern());

0 commit comments

Comments
 (0)