www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24731] New: IFTI cannot handle integer expressions

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

          Issue ID: 24731
           Summary: IFTI cannot handle integer expressions
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ogion.art gmail.com

void solve(size_t N)(ref double[N+1][N]) {}

void main()
{
    double[3][2] m;
    solve!2(m); // works
    solve(m);   // error
}

DMD: segmentation fault during compilation. 
LDC: compile-time error: integer constant expression expected instead of `N +
1`.

--
Aug 30