[dmd-beta] 2.067.0-b2

Jacob Carlborg via dmd-beta dmd-beta at puremagic.com
Mon Feb 23 10:05:00 PST 2015


> On 23 feb 2015, at 16:33, Rainer Schuetze via dmd-beta <dmd-beta at puremagic.com> 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


More information about the dmd-beta mailing list