digitalmars.D.bugs - dmd 0.98 enum int bit[] cast crash
- Regan Heath (20/20) Aug 19 2004 --[bug.d]--
--[bug.d]-- enum A{a} void foo(A a) { bit[] p; int b; b = a; p = cast(int *)&b[0]; } void main() { A a; foo(a); } D:\D\src\build\temp>dmd bug.d bug.d(9): b must be an array or pointer type, not int Regan -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Aug 19 2004