www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22144] New: ICE(dcast.d): Floating point exception in

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

          Issue ID: 22144
           Summary: ICE(dcast.d): Floating point exception in
                    castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

struct test
{
  int[0] foo;
}

void main()
{
  test* t;
  cast(typeof(t.foo)[])t.foo;
}

--
Jul 25