www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17677] New: [Reg 2.073] ICE when adding ulong to cfloat

https://issues.dlang.org/show_bug.cgi?id=17677

          Issue ID: 17677
           Summary: [Reg 2.073] ICE when adding ulong to cfloat
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

This took a couple of hours to dustmite & manually reduce from the
vdparser-benchmark in druntime:

void foo()
{
    cfloat v2;
    ulong v1;
    auto z = v2 + v1;
}

compile with dmd 2.075 with "-m64" yields:

Internal error: ddmd\backend\cg87.c 3680

The same happens with substraction, but not with multiplication. This compiles
with dmd 2.072 or with -m32.

--
Jul 23 2017