[Issue 10646] New: [ICE] when casting dynamic array/static array to class reference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 15 06:31:46 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10646
Summary: [ICE] when casting dynamic array/static array to class
reference
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: henning at still-hidden.de
--- Comment #0 from Henning Pohl <henning at still-hidden.de> 2013-07-15 06:31:45 PDT ---
void main() {
class C { }
C[] csd;
C[2] css;
auto c1 = cast(C)csd;
auto c2 = cast(C)css;
}
---
test.d(6): Error: e2ir: cannot cast csd of type C[] to type test.main.C
test.d(7): Error: e2ir: cannot cast css of type C[2LU] to type test.main.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