https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102279

Will <nyphbl8d at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Will <nyphbl8d at gmail dot com> ---
Thanks(In reply to Richard Earnshaw from comment #1)
> Looks to me like this code violates the aliasing rules.  Compiling with
> -fno-strict-aliasing looks generate what your are expecting (although your
> expectations are wrong by the C standard).
> 
> Oddly, -Wstrict-aliasing does not pick this case up, perhaps because of the
> packed attribute.

Thanks Richard! This is obviously a gap in my knowledge I need to fill in.

Reply via email to