www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14130] New: REG(2.067) Ice following error in template

https://issues.dlang.org/show_bug.cgi?id=14130

          Issue ID: 14130
           Summary: REG(2.067) Ice following error in template parameter
                    default value
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: yebblies gmail.com

F sumKBN(Range, F = Unqual)(Range r, F s = 0.0) 
{
}

void main()
{
    0.sumKBN;
}

DMD v2.067 DEBUG
testx.d(7): Error: undefined identifier Unqual
assert template.c(2586) fd->type->ty == Tfunction

--
Feb 06 2015