At 2007-04-09 I have downloaded the DMD package from the digitalmars web-page. I tried to code a veb-tree with template metaprogramming and ended up with the above-mentioned error. The command-line was /opt/dmd/bin/dmd -c vebtree.d
The complete code can be found at the above URL.
Comment #3 by onlystupidspamhere — 2007-04-10T13:35:43Z
(In reply to comment #2)
Hehe, I created a bit more reduced version on #d today, but forgot to post it here. Here it is:
import std.intrinsic;
class Node(int l) { Node!(l-1) b; }
class Node(int l : 0) {
uint leaf = 0;
int m() {
return leaf ? 0 : bsf(leaf);
}
}
alias Node!(1) tree;