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