[dmd-internals] Don's CTFE overhaul – bug reports?

David Nadlinger code at klickverbot.at
Sun Apr 10 02:45:02 PDT 2011


On 4/10/11 7:26 AM, Don Clugston wrote:
> Yes, that's exactly what I want.[…]

Another ICE, with f8e9d18 applied:
---
import std.algorithm;

size_t[] foo() {
     auto e = ["b", "c", "a", "d", "e", "f", "g"];
     auto indices = new size_t[e.length];
     makeIndex(e, indices);
     return indices;
}

enum bar = foo();
---

»Assertion failed: (v2 && v2->getValue()), function 
interpretAssignCommon, file interpret.c, line 2575.«

Interestingly, this only seems to occur with seven elements or more – 
otherwise, the »could not sort« assert in std.algorithm sort is 
triggered (which is buggy in its own way, will submit a pull request for 
that).

David


More information about the dmd-internals mailing list