This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/9058: structure with flexible array member: offsetof() !=sizeof()
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: <manfred at colorfullife dot com>
- Cc: <gcc-gnats at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>
- Date: Thu, 26 Dec 2002 20:16:24 +0000 (GMT)
- Subject: Re: c/9058: structure with flexible array member: offsetof() !=sizeof()
On 26 Dec 2002 manfred@colorfullife.com wrote:
> Now sizeof(struct x) is 8, offsetof(struct x, c) is 6. That seems to
> contradice the C99 standard: section 6.7.2.1, constraint 16.
Please read the suggested TC in response to DR 282. (See N983
<http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n983.htm> and the Santa Cruz
minutes <http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n987.htm> - the DR
log hasn't yet been updated.)
--
Joseph S. Myers
jsm28@cam.ac.uk