From 97776ec7ba6217ecdfb8fd777dec85117de6f188 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 10 Jul 2024 12:38:24 +0300 Subject: [PATCH] Disable -Warray-bounds in bind_ref_test because of GCC 14 UBSAN --- test/bind_ref_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/bind_ref_test.cpp b/test/bind_ref_test.cpp index c90efca..d154afc 100644 --- a/test/bind_ref_test.cpp +++ b/test/bind_ref_test.cpp @@ -8,6 +8,13 @@ // http://www.boost.org/LICENSE_1_0.txt // +#if defined(__GNUC__) +// -Warray-bounds false positive under GCC 14 UBSAN +// ./boost/bind/mem_fn.hpp:74:59: error: array subscript 'int (**)(...)[0]' is partly outside array bounds of 'X [1]' [-Werror=array-bounds=] +// 74 | return (get_pointer( std::forward( u ) )->*pm_)( std::forward( a )... ); +# pragma GCC diagnostic ignored "-Warray-bounds" +#endif + #include #include #include