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

Hi, the check before here in the file only checks for non-templated, 
non-delegating constructors initializing the class  where union is member, and 
that produces a different warning. 
And if you're why this whole patch, then I've added the issue it resolves.  


https://github.com/llvm/llvm-project/pull/81225
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to