August 19, 2004 dmd 0.98 enum bit[] cast | ||||
---|---|---|---|---|
| ||||
--[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/
|
Copyright © 1999-2021 by the D Language Foundation