https://issues.dlang.org/show_bug.cgi?id=15733
Issue ID: 15733
Summary: Forward reference issue involving inheritance
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
$ cat bug.d
class Statement: Node{}
class Declaration: Statement{}
class Node{ mixin Foo!Declaration; }
template Foo(T){ mixin(T.stringof~" x;"); }
$ dmd bug.d # DMD 2.070.0
bug.d(2): Error: class expression.Declaration is forward referenced when
looking for 'stringof'
bug.d(3): Error: mixin expression.Node.Foo!(Declaration) error instantiating
--