www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7987] New: [CTFE] cannot compare arrays of slices

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: clugdbug yahoo.com.au



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: -------
Apr 26 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7987


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



https://github.com/D-Programming-Language/dmd/commit/ec78449561d5679d8c1281357f90a95be9bfe5ce

D1:

https://github.com/D-Programming-Language/dmd/commit/094f2678185e1dc450884e41f30cc0d519dd5ac8

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