From 152f19233d553af1fed64cc468b332b6780dd655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raffaele=20Solc=C3=A0?= Date: Thu, 27 Jun 2024 13:26:38 +0200 Subject: [PATCH] Fix gcc12 and gcc13 warning. Fixes mdspan/tests/libcxx-backports/mdspan/CustomTestAccessors.h:54:93: error: extra ';' [-Werror=pedantic] 54 | constexpr move_counted_handle(const move_counted_handle& other) : ptr(other.ptr){}; --- tests/libcxx-backports/mdspan/CustomTestAccessors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libcxx-backports/mdspan/CustomTestAccessors.h b/tests/libcxx-backports/mdspan/CustomTestAccessors.h index f18a6982..6856c0a5 100644 --- a/tests/libcxx-backports/mdspan/CustomTestAccessors.h +++ b/tests/libcxx-backports/mdspan/CustomTestAccessors.h @@ -51,7 +51,7 @@ struct move_counted_handle { constexpr move_counted_handle(const move_counted_handle&) = default; template requires(std::is_constructible_v) - constexpr move_counted_handle(const move_counted_handle& other) : ptr(other.ptr){}; + constexpr move_counted_handle(const move_counted_handle& other) : ptr(other.ptr){} constexpr move_counted_handle(move_counted_handle&& other) { ptr = other.ptr; #if MDSPAN_HAS_CXX_23