This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]