www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - casting to bit

reply kenny <funisher gmail.com> writes:
I realize this isn't right, but nonetheless it crashes 0.128 :)

int main(char[][] args)
{
     printf("compression tests:");

     char[] data;
     data = new char[8];

     bit* pData;
     pData = &cast(bit*)data;

     return 0;
}
Jul 16 2005
parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.THISISSPAM.cn> writes:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

kenny wrote:

 I realize this isn't right, but nonetheless it crashes 0.128 :)

 int main(char[][] args)
 {
     printf("compression tests:");

     char[] data;
     data = new char[8];

     bit* pData;
     pData = &cast(bit*)data;

     return 0;
 }

Added to DStress as http://dstress.kuehne.cn/nocompile/o/cast_28.d Thomas
Jul 18 2005