[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 7 18:47:00 GMT 2014


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.



More information about the Gcc-bugs mailing list