> On 23 feb 2015, at 16:33, Rainer Schuetze via dmd-beta > <[email protected]> wrote: > > Hi, > > I've tried the beta on Visual D, and it produces one error that reduces to > > void main() > { > auto sz = cast(long)null; > } > > test.d(5): Error: e2ir: cannot cast null of type typeof(null) to type long > > Any cast of null to an integer type seems to fail, but works in 2.066. > > Is this a deliberate change?
I’m not sure if this is deliberate but I’m pretty sure that any error message that mentions a source file from the compiler (in this case “e2ir”) is a bug. -- /Jacob Carlborg _______________________________________________ dmd-beta mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-beta
