[Issue 9710] New: Pointer enums crash dmd
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 13 13:01:09 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9710
Summary: Pointer enums crash dmd
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: NCrashed at gmail.com
--- Comment #0 from NCrashed at gmail.com 2013-03-13 13:01:08 PDT ---
Reveals while porting old C library, below code crashes dmd v2.062 without any
error reported:
long gi;
enum gi0 = ((cast(int *)&gi)[0]);
enum gi1 = ((cast(int *)&gi)[1]);
void main()
{
}
--
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