$ dmd t2.d
t2.d(13): Error: class t2.Z base class is forward referenced by X
t2.d(7): Error: static assert (is(Z : X)) is false
t2.d(11): instantiated from here: Template!(Z)
$ cat t2.d
module t2;
class X {
}
class Template(T) {
static assert(is(T : X)); //line 7
}
alias Template!(Z) Bla; //line 11
class Z : X { //line 13
}
Comment #1 by robert — 2010-12-09T09:27:45Z
*** Issue 5336 has been marked as a duplicate of this issue. ***
Comment #2 by robert — 2010-12-09T09:29:54Z
Created attachment 846
Patch to fix bug 4033
The patch passes the test suite and is against revision 795. Should fix the bug for both D1 and D2.