[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
================
@@ -224,6 +224,9 @@ struct TemplateInit {
};
// FIXME: This is ill-formed (no diagnostic required). We should diagnose it.
constexpr TemplateInit() {} // desired-error {{must initialize all members}}
----------------
Fznamznon wrote:
We've got the desired error, I think :)
```suggestion
constexpr TemplateInit() {}
```
https://github.com/llvm/llvm-project/pull/81042
More information about the cfe-commits
mailing list