https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109233
--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> --- Created attachment 54729 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54729&action=edit Minimized testcase WIP, but *substantially* minimized. gcc -O2 -Warray-bounds: tg3-6.c: In function ‘tg3_init_one’: tg3-6.c:51:37: warning: array subscript 5 is above array bounds of ‘struct tg3_napi[5]’ [-Warray-bounds=] 51 | struct tg3_napi *tnapi = &tp->napi[i]; | ~~~~~~~~^~~ tg3-6.c:22:19: note: while referencing ‘napi’ 22 | struct tg3_napi napi[(4 + 1)]; | ^~~~ tg3-6.c:51:37: warning: array subscript 5 is above array bounds of ‘struct tg3_napi[5]’ [-Warray-bounds=] 51 | struct tg3_napi *tnapi = &tp->napi[i]; | ~~~~~~~~^~~ tg3-6.c:22:19: note: while referencing ‘napi’ 22 | struct tg3_napi napi[(4 + 1)]; | ^~~~