Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: How does strict aliasing work with parallel arrays in a union or const-initialized data Date: Thu, 29 Oct 2015 08:50:54 -0700 Organization: None to speak of Lines: 17 Message-ID: References: <44332515-f0c2-40f4-b435-c1351188e3bc@googlegroups.com> <6408f9ec-e8d2-4526-96ca-271e1d201484@googlegroups.com> <342e8770-35cb-4f9c-ad01-8a660c12d97d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="29847"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YGsvBdqTCLHYidubB2wo5" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:+dw0PLu4GiaghWOzsQmWf3Rm9Hw= sha1:LNSkmH31/hqwCjTdlbtNa9C13MQ= Xref: csiph.com comp.lang.c:74178 supercat@casperkitty.com writes: > On Wednesday, October 28, 2015 at 8:09:53 PM UTC-5, Keith Thompson wrote: >> The length is unspecified to allow for the fact that implementations >> may give array members different alignments according to their >> lengths. > > Gaaaaaah! The quoted text is a footnote that appeared in the C99 standard and was later removed. If you're going to complain about it, I think that's worth mentioning. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"