www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15068] New: wrong error message on attempting to use type as

https://issues.dlang.org/show_bug.cgi?id=15068

          Issue ID: 15068
           Summary: wrong error message on attempting to use type as
                    template
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

void main()
{
    Stuff!int s;
}
struct Stuff(T)
{
    T!int var;
}

leads to the error:
test.d(8): Error: template instance T!int T is not a template declaration, it
is a alias

T is not an alias, it's a type.

--
Sep 16 2015