From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20180801072134.DEB31156E400@mail.bitblocks.com> <079A451E-7BFC-4E52-99AA-2E58449C1346@bitblocks.com> From: Benjamin Purcell Date: Thu, 2 Aug 2018 09:28:51 -0400 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset="UTF-8" Subject: Re: [9fans] A compiler bug Topicbox-Message-UUID: d9a618da-ead9-11e9-9d60-3106f5b1d025 Fwiw, the bugs in 6c and 8c where the cast fails was fixed in 9front with https://code.9front.org/hg/plan9front/rev/7cf7079502a7 On Thu, Aug 2, 2018 at 5:38 AM, Charles Forsyth wrote: > 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.