Summary: Error when template is instantiated in a class
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Robert Clipsham <> 2011-05-12 
18:43:25 BST ---
The following code:
template Templ(alias T)
    alias T!int Templ;

class C(T) 
    Templ!C foo;

// Uncomment this to make the error go away
//Templ!C foo;

void main()
    C!int a;
Gives the error:
test.d(3): Error: template instance T is not a template declaration, it is a
When uncommenting the line mentioned in the code the error goes away,
presumably because the forward reference goes away.

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

Reply via email to