[clang] [clang][Sema] Fix rejection of non-dependent void{} during template instantiation (PR #228340)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 12 23:15:37 PST 2026
================
@@ -1870,12 +1870,19 @@ class CXXFunctionalCastExpr final
static CXXFunctionalCastExpr *
CreateEmpty(const ASTContext &Context, unsigned PathSize, bool HasFPFeatures);
+ static CXXFunctionalCastExpr *
+ CreateListInitializer(const ASTContext &Context, QualType T, ExprValueKind VK,
----------------
ojhunt wrote:
I would make both ::Create and ::CreateListInitializer take a source range, and forward to a CreateInternal method that takes left and right locations explicitly. It means in future should we switch to track isListInitialization() we won't have to change any call sites.
https://github.com/llvm/llvm-project/pull/228340
More information about the cfe-commits
mailing list