www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7352] New: Poor error message when using variable as template type parameter

http://d.puremagic.com/issues/show_bug.cgi?id=7352

           Summary: Poor error message when using variable as template
                    type parameter
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au



template Foo(X)
{
 alias int Foo;
}

int m;
alias Foo!(m) XXX;

bug.d(7): Error: template instance Foo!(m) does not match template declaration
Foo(X)

It should say something like, "m is not a type".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 23 2012