From the D Blog: Driving with D
Johan Engelen
j at j.nl
Sun Jun 6 22:39:34 UTC 2021
On Friday, 4 June 2021 at 21:47:21 UTC, Iain Buclaw wrote:
> On Friday, 4 June 2021 at 21:28:00 UTC, Max Samukha wrote:
>>
>> This doesn't [work]:
>>
>> ubyte[] slice;
>> foreach (ubyte i; slice) {
>> }
>>
>> Invalid bitcast
>> %17 = bitcast i16 %15 to i32
>>
>> I guess the cause is the same - slice.length.sizeof == 4,
>> while slice.sizeof == 4, slice.ptr.sizeof == 2, and
>> size_t.sizeof == 2.
>
> You should have better luck using gdc on avr.
>
> https://explore.dgnu.org/z/bos5ee
Hi Max,
GDC and LDC are both happy to support many platforms (it's
fun), so keep filing bug reports in our bug trackers! (LDC's bug
tracker is on Github, please also mention the triple you are
using)
cheers,
Johan
More information about the Digitalmars-d-announce
mailing list