[clang] [clang] Reject initializing constexpr struct/union types with compound literals that contain non null pointers (PR #228776)
Abdulmalek Almkainzi via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 6 23:30:24 PDT 2026
================
@@ -7922,6 +7922,24 @@ ExprResult Sema::PerformQualificationConversion(Expr *E, QualType Ty,
return ImpCastExprToType(E, Ty, CK, VK, /*BasePath=*/nullptr, CCK);
}
+// If C2y allows non-null constexpr pointers, this function should always return
----------------
aalmkainzi wrote:
yes I think it makes sense to move the comment from the call site to here
https://github.com/llvm/llvm-project/pull/228776
More information about the cfe-commits
mailing list