[Issue 7987] New: [CTFE] cannot compare arrays of slices

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 26 01:14:08 PDT 2012


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

           Summary: [CTFE] cannot compare arrays of slices
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2012-04-26 01:15:11 PDT ---
bool bug7987() {
    int [7] a;
    int[][2] b = a[0..5];
    assert(b == b);
    return true;
}

static assert(bug7987());

bug.d(38): Error: b == b cannot be interpreted at compile time

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


More information about the Digitalmars-d-bugs mailing list