This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Mar 2014 18:47:04 +0000
- Subject: [Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions
- Auto-submitted: auto-generated
- References: <bug-60429-4 at http dot gcc dot gnu dot org/bugzilla/>
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.