http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> --- 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.