digitalmars.D.bugs - [Issue 11438] New: Internal error: ..\ztc\cod4.c 358 from "alias this" and a cast
- d-bugmail puremagic.com (36/36) Nov 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11438
http://d.puremagic.com/issues/show_bug.cgi?id=11438 Summary: Internal error: ..\ztc\cod4.c 358 from "alias this" and a cast Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: sturtivant gmail.com PST --- Created an attachment (id=1286) Code as above, with commentary Here's a minimal example of the problem, extracted and simplified laboriously from real code. I only verified it on Windows and Linux, see below for details. struct blah {} struct blah_ptr { blah* ptr; alias ptr this; } void f() { int irrelevant; blah* bptr = cast(blah_ptr)&irrelevant; } /* DMD32 D Compiler v2.063.2 (Windows) DMD64 D Compiler v2.063.2 (Linux) dmd -c bug.d Internal error: ..\ztc\cod4.c 358 */ -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 04 2013