https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109449
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The trunk provides extra information:
<source>: In function 'void func()':
<source>:51:47: warning: writing 1 byte into a region of size 0
[-Wstringop-overflow=]
51 | tdp[(2 * i + 1) * DSIZEY + 2 * j] = tpm; // 1. warning here
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
<source>:16:9: note: at offset 80 into destination object 'drlg' of size 80
16 | DrlgMem drlg;
| ^~~~
<source>:58:51: warning: writing 1 byte into a region of size 0
[-Wstringop-overflow=]
58 | tdp[(2 * i + 1) * DSIZEY + 2 * j + 1] = tpm; // 2. warning
here
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
<source>:16:9: note: at offset [81, 6399] into destination object 'drlg' of
size 80
16 | DrlgMem drlg;
| ^~~~