http://d.puremagic.com/issues/show_bug.cgi?id=2550
Summary: template specialization not working because of "static if"? Product: D Version: unspecified Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzi...@digitalmars.com ReportedBy: dav...@126.com template pow10(long n) { static if(n<0) const long pow10=0; else const long pow10=10*pow10!(n-1); } template pow10(long n:0) { const long pow10=1; } static assert(pow10!(0) == 1); --