A nice way to step into 2012
Joshua Reusch
yoschi at arkandos.de
Tue Dec 27 07:21:38 PST 2011
Am 27.12.2011 05:25, schrieb Andrei Alexandrescu:
> https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc
>
>
> Andrei
-------------
import std.algorithm;
void main() {
auto arr = [0, 5, 4, 3, 2, 1];
sort!((a, b) => a < b)(arr);
}
-------------
$ ./dmd lambda_test
dmd: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr)
(((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct
malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >=
(unsigned long)((((__builtin_offsetof (struct malloc_chunk,
fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) -
1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask)
== 0)' failed.
$
This also "works" with other functions from std.algorithm.
More information about the Digitalmars-d
mailing list