[Issue 7352] New: Poor error message when using variable as template type parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 23 02:16:39 PST 2012
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 at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at 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: -------
More information about the Digitalmars-d-bugs
mailing list