[clang] [Clang][Sema] Diagnosis for constexpr constructor not initializing a union member (PR #81225)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 20 22:51:21 PST 2024


================
@@ -2393,6 +2391,17 @@ static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
                                              Kind))
             return false;
       }
+    } else if (!Constructor->isDelegatingConstructor()) {
----------------
shafik wrote:

Can you explain why we need this change? 

https://github.com/llvm/llvm-project/pull/81225


More information about the cfe-commits mailing list