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: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2012-01-23 02:16:23 PST ---
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: -------

Reply via email to