http://d.puremagic.com/issues/show_bug.cgi?id=7187

           Summary: Regression(head 12d62ca5): [CTFE] ICE on slicing
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: verylonglogin....@gmail.com


--- Comment #0 from Denis <verylonglogin....@gmail.com> 2011-12-31 08:57:23 MSK 
---
It compiles with dmd 2.057. But with head commit (12d62ca5):
Assertion failure: '((ArrayLiteralExp *)se->e1)->ownedByCtfe' on line 6315 in
file 'interpret.c'
---
int[] f() { return [0]; }

int g(int[] r)
{
    auto t = r[0..0];
    return 0;
}

static assert(g(f()) == 0);
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to