From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bakul Shah Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Date: Wed, 1 Aug 2018 17:27:30 -0700 References: <20180801072134.DEB31156E400@mail.bitblocks.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: Message-Id: <079A451E-7BFC-4E52-99AA-2E58449C1346@bitblocks.com> Subject: Re: [9fans] A compiler bug Topicbox-Message-UUID: d99d9dfe-ead9-11e9-9d60-3106f5b1d025 On Aug 1, 2018, at 4:35 PM, Charles Forsyth = wrote: > even so, the format and intention of the example seems practical (with = the correct cast to uintptr) and "An implementation may accept other = forms of constant expressions". > it should be fairly easy to add as an extension with consistent = handling across ?c. Both gcc and clang handle this case. This example was derived from ObjectIcon (it works on plan9/x86 & unix systems but not on plan9/arm). I am not familiar with the C compiler sources but will take a look. Thanks for your response.=