[libcxx-commits] [libcxx] [libcxxabi] [libc++][hardening] Introduce assertion semantics (PR #148268)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 14 11:46:43 PDT 2025


================
@@ -43,17 +43,17 @@ int main(int, char**) {
   }
   // mismatch of static extent
   {
-    TEST_LIBCPP_ASSERT_FAILURE(([] { std::extents<int, D, 5> e1(std::array{1000, 3}); }()),
+    TEST_LIBCPP_ASSERT_FAILURE(([] { [[maybe_unused]] std::extents<int, D, 5> e1(std::array{1000, 3}); }()),
----------------
ldionne wrote:

Just curious, why are those necessary now but weren't before?

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


More information about the libcxx-commits mailing list