Region allocator strage error
ref2401 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jan 31 06:48:34 PST 2016
I am getting runtime error:
core.exception.AssertError at std\experimental\allocator\building_blocks\region.d(235): Assertion failure
if LEN equals to 3, 5, 7, 9, ...
void main(string[] args) {
ubyte[1024] memory;
auto stackAlloc = Region!NullAllocator(memory);
IAllocator alloc = allocatorObject(&stackAlloc);
enum LEN = 11;
float[] arr = alloc.makeArray!float(LEN);
alloc.expandArray(arr, LEN);
}
OS: win 8.1 Enterprise x64
DMD: 2070.0
platformAlignment: 8
Any thoughts?
Thank you.
More information about the Digitalmars-d-learn
mailing list