https://issues.dlang.org/show_bug.cgi?id=17740 --- Comment #6 from Mr. Smith <mrsmith33 at yandex.ru> --- Looks like the problem is with Piece* sentinel = new Piece; If I do that at runtime it works. --