[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 8 18:45:18 PST 2025
================
@@ -2937,6 +2937,8 @@ InitListChecker::CheckDesignatedInitializer(const InitializedEntity &Entity,
}
FieldDecl *KnownField = D->getFieldDecl();
+ if (KnownField && KnownField->getParent() != RD)
+ KnownField = nullptr;
----------------
zyn0217 wrote:
We need some comments/explanation for this workaround.
If this is related to cache, is it possible for us to fix that instead?
https://github.com/llvm/llvm-project/pull/167159
More information about the cfe-commits
mailing list