Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rephrase & Format
  • Loading branch information
zyn0217 committed Mar 9, 2024
commit 2e95a41b60b310c67dd7eafa987b5b63ae461ee6
6 changes: 2 additions & 4 deletions clang/lib/Sema/SemaConcept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,8 @@ bool Sema::SetupConstraintScope(
// reference the original primary template.
// We walk up the instantiated template chain so that nested lambdas get
// handled properly.
// Note that we shall not collect instantiated parameters from
// 'intermediate' transformed function templates but the primary template
// for which we have built up the template arguments relative to. Otherwise,
// we may have mismatched template parameter depth!
// We should only collect instantiated parameters from the primary template.
// Otherwise, we may have mismatched template parameter depth!
if (FunctionTemplateDecl *FromMemTempl =
PrimaryTemplate->getInstantiatedFromMemberTemplate()) {
while (FromMemTempl->getInstantiatedFromMemberTemplate())
Expand Down