Summary: forward reference in templated class
           Product: D
           Version: 2.040
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-02-18 13:00:53 PST ---
class Foo(T) {
    Node!T head;
    class Node(T) {}
void main() {
    auto f = new Foo!int;

dmd prints:

test.d(2): Error: template instance Node!(int) forward references template
declaration Node(T)

test.d(2): Error: Node!(int) is used as a type
test.d(2): Error: variable test.Foo!(int).Foo.head voids have no value
test.d(6): Error: template instance test.Foo!(int) error instantiating

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to