www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13164] New: ICE: backend/cgcod.c 1589

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

          Issue ID: 13164
           Summary: ICE: backend/cgcod.c 1589
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

ICE found when looking over the autotester for:
https://github.com/D-Programming-Language/phobos/pull/2353

Only reproducible when compiling with -O


float I(float J)
{
    float Q;
    uint *S = cast(uint *)&Q;
    uint *X = cast(uint *)&J;

    if (X[0])
        *S = *X;

    return Q;
}

--
Jul 19 2014