[Issue 11438] New: Internal error: ..\ztc\cod4.c 358 from "alias this" and a cast
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 4 09:22:43 PST 2013
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 at puremagic.com
ReportedBy: sturtivant at gmail.com
--- Comment #0 from Carl Sturtivant <sturtivant at gmail.com> 2013-11-04 09:22:40 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: -------
More information about the Digitalmars-d-bugs
mailing list