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

--- Comment #3 from Siddhesh Poyarekar <siddhesh at gcc dot gnu.org> ---
Here we go, I'll put it into builtin-dynamic-object-size-0.c, bootstrap and
post a patch.

struct TV4
{
  __attribute__((vector_size (sizeof (int) * 4))) int v;
};

struct TV4 val3;
int *
f1 (struct TV4 *a)
{
  return &a->v[0];
}

int
f2 (void)
{
  int *t = f1 (&val3);
  if (__builtin_dynamic_object_size (t, 0) != -1)
    __builtin_abort ();

  return 0;
}

Reply via email to