diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h index ab0c542d0e24c6ecb77abfc535c8232774cba6d5..69c81de6bb3cd9ea207c5a1f216a2301d1529fc0 100644 --- a/Eigen/src/Core/util/DisableStupidWarnings.h +++ b/Eigen/src/Core/util/DisableStupidWarnings.h @@ -81,6 +81,11 @@ // See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325 #pragma GCC diagnostic ignored "-Wattributes" #endif +#if __GNUC__ >= 12 +// see https://gitlab.com/libeigen/eigen/-/issues/2506 +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106247 +#pragma GCC diagnostic ignored "-Warray-bounds" +#endif #endif #if defined __NVCC__ && defined __CUDACC__