www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - DMD 0.161 Access Violation

// A error message is displayed,
// and then the Access Violation happens.
int foo = "foo";

// just Access Violation happens.
int bar = cast(int)cast(char*)"bar";

--
:cannot implicitly convert expression ("foo") of type char[3] to int
(then Access Violation)

DMD 0.161 on Windows 2000
Jun 20 2006