[Issue 7097] opDollar doesn't work with slicing

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 28 19:03:09 PDT 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #3 from bearophile_hugs at eml.cc 2012-10-28 19:03:08 PDT ---
This is crashing dmd, do you want me to open a new bug report?


static struct Foo {
    int[] opSlice(int a, int b) {
        return [a, b];
    }
    int opDollar(int dim)() {
        return dim;
    }
}
void main() {
    Foo array;
    array[0 .. $];
}



Assertion failure: 'd' on line 1401 in file 'dsymbol.c'

-- 
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