www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18197] New: [REG2.073] Internal error: backend\cgcod.c 1659


          Issue ID: 18197
           Summary: [REG2.073] Internal error: backend\cgcod.c 1659
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: rmanth gmail.com

struct A
    double a;

pair makeA(double value)
    return pair(value);

double test(double x)
    ulong* p = *cast(ulong *)&x;
    return makeA(x).a;
dmd -m32 -c -inline -O testcase.d
dmd -m32mscoff -c -inline -O testcase.d
both fail with "Internal error: Internal error: backend\cgcod.c 1659"

This first appears in v2.073.0-b1 and is still present in nightly builds with
"Internal error: dmd\backend\cgcod.c 1688"

Jan 05 2018