Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 212a4ef

Browse files
committedJan 26, 2024
[clang][Sema] fixup
1 parent 497a860 commit 212a4ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎clang/lib/Sema/SemaConcept.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,10 @@ bool Sema::SetupConstraintScope(
612612

613613
// If this is a member function, make sure we get the parameters that
614614
// reference the original primary template.
615-
if (const auto *FromMemTempl =
616-
PrimaryTemplate->getInstantiatedFromMemberTemplate()) {
615+
for (FunctionTemplateDecl *FromMemTempl =
616+
PrimaryTemplate->getInstantiatedFromMemberTemplate();
617+
FromMemTempl;
618+
FromMemTempl = FromMemTempl->getInstantiatedFromMemberTemplate()) {
617619
if (addInstantiatedParametersToScope(FD, FromMemTempl->getTemplatedDecl(),
618620
Scope, MLTAL))
619621
return true;

0 commit comments

Comments
 (0)
Please sign in to comment.