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

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 03:12:33 PST 2024


================
@@ -150,6 +150,8 @@ Improvements to Clang's diagnostics
 
 - Clang now diagnoses member template declarations with multiple declarators.
 - Clang now diagnoses use of the ``template`` keyword after declarative nested name specifiers.
+- Clang now diagnoses constexpr constructor for not initializing atleast one member of union
----------------
Fznamznon wrote:

```suggestion
- Clang now diagnoses constexpr constructor for not initializing at least one member of union
```

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


More information about the cfe-commits mailing list