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

Martin Sebor <msebor at gcc dot gnu.org> changed:

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

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
The phrasing of the warning could stand to be made clearer but it is by design.
  With the exception of a union with a /common initial sequence/, it's not
valid to access [members of] an object of one type (struct list) using a
pointer to an incompatible type (struct ref).  It doesn't matter if the offset
of the member is less than the size of the object.

Reply via email to