https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117912

--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #14)
> 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.

Sounds exactly like https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109968#c4 .

Reply via email to