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

David Nadlinger code at klickverbot.at
Thu Apr 21 09:52:03 PDT 2011


On 4/18/11 11:06 PM, Don Clugston wrote:
> This turns out to be a pre-existing bug, which I've added as bug5852.
> It's quite serious.
> Pull request which fixes this:
> https://github.com/D-Programming-Language/dmd/pull/33

Thanks a lot for the amazing pace at which you are fixing bugs, Don!

Here is another regression:

---
int foo() {
     string[] strings;
     foreach (s; strings) {}
     return 0;
}

enum bar = foo();
---

While the foreach loop would just be executed zero times for null arrays 
at run-time (and in 2.052), it breaks CTFE in current Git master.

David


More information about the dmd-internals mailing list