[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jan 14 18:09:19 PST 2015


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

bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |normal

--- Comment #6 from bearophile_hugs at eml.cc ---
Another case (according to Kenji Hara):


void main() /*@nogc*/ {
    int[2][1] m = cast(int[2][1])[1, 2];
}


Gives:

test2.d(2,34): Error: e2ir: cannot cast [1, 2] of type int[] to type int[2][1]

--


More information about the Digitalmars-d-bugs mailing list