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