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

David Nadlinger code at klickverbot.at
Sat Apr 9 16:48:42 PDT 2011


I was thrilled to see Don's work on CTFE arrays being merged into trunk. 
However, it seems still rather unstable, for example, I am able to ICE 
DMD (current master, 0219a5f) with the following program (latest Phobos, 
516de1b):

---
import std.algorithm;

size_t[] foo() {
     auto indices = new size_t[3];
     makeIndex(["b", "c", "a"], indices);
     return indices;
}

enum bar = foo();
---

The exact error message is: »Assertion failed: ((v2->getValue()->op == 
TOKarrayliteral || v2->getValue()->op == TOKstring || v2->getValue()->op 
== TOKassocarrayliteral || v2->getValue()->op == TOKnull)), function 
interpretAssignCommon, file interpret.c, line 2590.«

Don, are bug reports helpful for you at the current stage? In which form 
do you want to receive them?

David


More information about the dmd-internals mailing list