From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <20180801072134.DEB31156E400@mail.bitblocks.com> <079A451E-7BFC-4E52-99AA-2E58449C1346@bitblocks.com> In-Reply-To: <079A451E-7BFC-4E52-99AA-2E58449C1346@bitblocks.com> From: Charles Forsyth Date: Thu, 2 Aug 2018 10:38:39 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="0000000000001e5b9405727094de" Subject: Re: [9fans] A compiler bug Topicbox-Message-UUID: d9a1ecc4-ead9-11e9-9d60-3106f5b1d025 --0000000000001e5b9405727094de Content-Type: text/plain; charset="UTF-8" Oh. I meant that I'd fix it. On Thu, 2 Aug 2018 at 01:29, Bakul Shah wrote: > 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. > --0000000000001e5b9405727094de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oh. I meant that I'd fix it.

On Thu, 2 Aug 2018 at 01:29, Bakul Shah <bakul@bitblocks.com> wrote:
<= /div>
On Aug 1, 2018, at 4:35 PM, Charles For= syth <cha= rles.forsyth@gmail.com> 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 handli= ng 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.
--0000000000001e5b9405727094de--