From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Wed, 27 Nov 2013 16:18:26 -0500 To: bakul@bitblocks.com, 9fans@9fans.net Message-ID: In-Reply-To: <20131127203458.7E631B82A@mail.bitblocks.com> References: <1ebc06ba0079a91546444a93ab21bc65@quintile.net> <12706eb9d1aafea3af76c427a31aae1a@coraid.com> <20131127203458.7E631B82A@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] compiler bug? Topicbox-Message-UUID: 8c743778-ead8-11e9-9d60-3106f5b1d025 > I think this is a compiler bug. What happens when you > declare a union but still do, for example, > > (((uchar*)&tmp.i)[0] = ((uchar*)mem)[3] > > etc.? I bet it works. the union itself explicitly declares aliasing, not which member you use. - erik