You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/bangerth/p/deal.II/1/dealii/include/deal.II/matrix_free/fe_evaluation.h:3710:24: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ offset [24, 2040] is out of the bounds [0, 16] of object ‘dof_indices’ with type ‘const unsigned int* [2]’ [-Warray-bounds]
3710 | dof_indices[v] = nullptr;
| ~~~~~~~~~~~~~~~^~~~~~~~~
This compiler seems to be pedantic, doesn't it? It tries to call memset with bounds 24, 2040, but the array length is only of 2 size_t (n_lanes=2) and the index range in the line above is also within n_vectorization_actual and n_lanes. The only way this would happen is that the compiler believes the integer could need to wrap around max_unsigned_int. It might help if we fix this
Alternatively, we can declare both variables as std::size_t, then the compiler should again know that we cannot wrap around the max index as this is a memory index.
The text was updated successfully, but these errors were encountered: