[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 21 08:40:08 PST 2025
================
@@ -5628,6 +5628,11 @@ class DesignatedInitExpr final
FieldInfo.NameOrField = reinterpret_cast<uintptr_t>(FD);
}
+ void clearFieldDecl() {
+ assert(isFieldDesignator() && "Only valid on a field designator");
----------------
erichkeane wrote:
Why is this necessary? The fact that we need this is probably meaning we're doing something VERY wrong.
https://github.com/llvm/llvm-project/pull/167159
More information about the cfe-commits
mailing list