https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117912
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- struct S { int a; int b[24]; int c[24]; int d; }; void bar (int *); __SIZE_TYPE__ foo (struct S *p) { bar (&p->b[24]); bar (&p->c[0]); return __builtin_object_size (&p->c[0], 1); } is another miscompiled testcase, should return 96, but returns 0. Regressed with the same commit.