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

--- Comment #43 from anlauf at gcc dot gnu.org ---
The call of foo is translated to:

  {
    struct __class_MAIN___T_15_0t class.6;
    struct array15_t array.7;

    class.6._vptr = (struct __vtype_MAIN___T * {ref-all}) &__vtab_MAIN___T;
    class.6._data.data = (void *) x->data;
    class.6._data.offset = x->offset;
    class.6._data.dtype = x->dtype;
    class.6._data.dim[0 ...] = x->dim[0 ...];
    array.7 = *x;
    foo (&class.6);
  }

Where's this funny array.7 coming from, and isn't it just a junk dereference?

Reply via email to