[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 3: Enumerating Expansion Statements) (PR #169682)
Yanzuo Liu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Apr 27 05:20:06 PDT 2026
================
@@ -7108,6 +7138,12 @@ NamedDecl *Sema::FindInstantiatedDecl(SourceLocation Loc, NamedDecl *D,
// anonymous unions in class templates).
}
+ if (CurrentInstantiationScope) {
+ if (auto Found = CurrentInstantiationScope->getInstantiationOfIfExists(D))
+ if (auto *FD = dyn_cast<NamedDecl>(cast<Decl *>(*Found)))
+ return FD;
+ }
----------------
zwuis wrote:
I applied this part locally and GH176155 is 'fixed'. But I don't know what the underlying problem is, nor do I know why this fixes it.
https://github.com/llvm/llvm-project/pull/169682
More information about the llvm-branch-commits
mailing list