This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18287] Unaligned access to fields inside packed records
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2005 09:14:40 -0000
- Subject: [Bug c/18287] Unaligned access to fields inside packed records
- References: <20041103175151.18287.ebotcazou@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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