digitalmars.D.bugs - [Issue 2722] New: ICE with variadic template parameters
- d-bugmail puremagic.com (27/27) Mar 10 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2722
- d-bugmail puremagic.com (9/9) Apr 01 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2722
http://d.puremagic.com/issues/show_bug.cgi?id=2722 Summary: ICE with variadic template parameters Product: D Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: andrei metalanguage.com This code: int foo(Types...)(string a) { } void main() { auto a = foo!(int, double)("s"); } fails with: dmd: template.c:798: MATCH TemplateDeclaration::deduceFunctionTemplateMatch(Loc, Objects*, Expression*, Expressions*, Objects*): Assertion `i < parameters->dim' failed. Adding a return 0; inside foo fixes the problem. The compiler should issue an error message giving information about what went wrong. --
Mar 10 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2722 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed DMD 2.027 --
Apr 01 2009