[libcxx-commits] [libcxx] [libc++] Fix constexpr initialization of std::array<T, 0> (PR #74667)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 14 14:45:09 PST 2023


================
@@ -18,26 +18,33 @@ struct NoDefault {
     TEST_CONSTEXPR NoDefault(int) { }
 };
 
-// Test default initialization
-// This one isn't constexpr because omitting to initialize fundamental types
-// isn't valid in a constexpr context.
-struct test_default_initialization {
+struct test_initialization {
----------------
EricWF wrote:

Please make these separate tests rather than trying to reuse the instantiation. It's just clearer for readers.

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


More information about the libcxx-commits mailing list