Bug 13959 – ICE in e2ir when casting struct to pointer

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-09T19:09:00Z
Last change time
2015-02-18T03:42:34Z
Keywords
ice, pull
Assigned to
nobody
Creator
schveiguy

Comments

Comment #0 by schveiguy — 2015-01-09T19:09:09Z
struct S { void* p; } void main() { S s; auto a = cast(void*)s; //Error: e2ir: cannot cast s of type S to type void* }
Comment #1 by k.hara.pg — 2015-01-12T14:46:06Z
Comment #2 by github-bugzilla — 2015-01-14T21:17:11Z
Comment #3 by github-bugzilla — 2015-02-18T03:42:34Z