File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -615,10 +615,8 @@ bool Sema::SetupConstraintScope(
615
615
// reference the original primary template.
616
616
// We walk up the instantiated template chain so that nested lambdas get
617
617
// handled properly.
618
- // Note that we shall not collect instantiated parameters from
619
- // 'intermediate' transformed function templates but the primary template
620
- // for which we have built up the template arguments relative to. Otherwise,
621
- // we may have mismatched template parameter depth!
618
+ // We should only collect instantiated parameters from the primary template.
619
+ // Otherwise, we may have mismatched template parameter depth!
622
620
if (FunctionTemplateDecl *FromMemTempl =
623
621
PrimaryTemplate->getInstantiatedFromMemberTemplate ()) {
624
622
while (FromMemTempl->getInstantiatedFromMemberTemplate ())
You can’t perform that action at this time.
0 commit comments