The dg-bogus directive here is trying to match -Warray-bounds or
-Wstringop-overflow, but it got the casing wrong on the latter.
gcc.dg/pr89350.c gets this right.
gcc/testsuite/ChangeLog:
PR middle-end/93437
* g++.dg/warn/Wstringop-overflow-5.C: Fix -Wstringop-overflow casing.
Bucket::Bucket ()
{
memset (&_has_bits_, 0, sizeof _has_bits_);
- memset (&cumulative_count_, 0, // { dg-bogus "\\\[-Warray-bounds|-wstringop-overflow" }
+ memset (&cumulative_count_, 0, // { dg-bogus "\\\[-Warray-bounds|-Wstringop-overflow" }
static_cast<size_t>(reinterpret_cast<char*>(&upper_bound_)
- reinterpret_cast<char*>(&cumulative_count_))
+ sizeof upper_bound_);