http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429

--- Comment #13 from Allan Jensen <linux at carewolf dot com> ---
(In reply to Andrew Pinski from comment #12)
>                 tmpPtBlock->pts = reinterpret_cast<QPoint
> *>(tmpPtBlock->data);
> 
> Does this not violate C/C++ aliasing rules later on?
> 
> I think data should be char array with the alignment of QPoint instead of an
> int array.

True, the data array is also four times too big for 200 QPoints because of the
int type. So fixing that would lower memory consumption, but I can't see how
that would break anything, since the this is casting an uninitialized
structure. And it doesn't seem to fit in with the symptoms.

Reply via email to