digitalmars.D.bugs - dmd 0.98 enum bit[] cast
- Regan Heath (19/19) Aug 19 2004 --[bug.d]--
--[bug.d]-- enum A{a} void foo(A a) { bit[] p; p = cast(bit[])(cast(bit *)a); } void main() { A a; foo(a); } D:\D\src\build\temp>dmd bug.d bug.d(6): e2ir: cannot cast from bit* to bit[] Internal error: ..\ztc\cod1.c 3249 If the cast is done in main it doesn't occur. Regan -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Aug 19 2004