This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/69319] Suspect compiler bug
- 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: Sat, 16 Jan 2016 22:47:42 +0000
- Subject: [Bug c/69319] Suspect compiler bug
- Auto-submitted: auto-generated
- References: <bug-69319-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69319
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Frediano Ziglio from comment #4)
> -O0, -O1 or -fno-strict-aliasing all works.
>
> But I don't understand how gcc can generate such code.
> What am I missing?
member and members struct access cannot alias. Please read up about C aliasing
rules.