[Issue 8179] [ICE] with failed fixed size array cast
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 18 03:20:16 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8179
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[ICE] with failed opCall |[ICE] with failed fixed
| |size array cast
--- Comment #1 from bearophile_hugs at eml.cc 2012-10-18 03:20:07 PDT ---
A simpler test case shows it's not related to opCall, so I have updated the
title:
void foo(int[2][1]) {}
void main() {
foo(cast(int[2][1])[1, 2]);
}
----------------------------
A similar but not equal case (arrays are 1D):
void foo(int[2] data) {}
void main() {
int[4] data;
int[2] data2 = data[0 .. 2]; // OK
foo(data2); // OK
foo(cast(int[2])data[0 .. 2]); // Internal error
}
test.d(6): Error: e2ir: cannot cast data[0u..2u] of type int[] to type int[2u]
Internal error: e2ir.c 189
--
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