[clang] [Clang][Sema] Diagnosis for constexpr constructor not initializing a union member (PR #81042)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 7 21:58:04 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}}
+#ifndef CXX2A
----------------
mahtohappy wrote:
yes, I'm here just following the convention in that file and didn't want to change the run command
https://github.com/llvm/llvm-project/blob/main/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p4.cpp
https://github.com/llvm/llvm-project/pull/81042
More information about the cfe-commits
mailing list