[Bug c/18287] Unaligned access to fields inside packed records

rth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 4 09:14:00 GMT 2005


------- Additional Comments From rth at gcc dot gnu dot org  2005-01-04 09:14 -------
Subject: Re:  Unaligned access to fields inside packed records

> Could you tell on what grounds?  AFAICS all fields are still addressable.

Not really, they aren't.  I've argued in the past that we should either
make them non-addressable, or (more usefully) implement pointers to
unaligned data.  But having done neither, the result of the addressof
operator is undefined.


r~


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18287



More information about the Gcc-bugs mailing list