CTFE Status

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 15 15:46:51 PST 2016


On Tuesday, 15 November 2016 at 22:50:49 UTC, deadalnix wrote:
> On Tuesday, 15 November 2016 at 01:35:42 UTC, Stefan Koch wrote:
>> However there is a a bug inside the code that does 
>> bounds-checking for array assignment.
>> In rare cases it can trigger a out-bounds-error on newly 
>> created arrays.
>>
>
> This raise all kind of red flags to me. What are the design 
> decision that lead to this ?

I am still figuring out when and why the bug is caused.
The Byte-code for slice allocation is rather complex.
Because it has to deal with resizing slices as well.
I suspect that somewhere the heapPtr is not bumped or the length 
is not set correctly.


More information about the Digitalmars-d mailing list