www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14538] New: ICE(cast.c, typeMerge) - Assertion failed:

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

          Issue ID: 14538
           Summary: ICE(cast.c, typeMerge) - Assertion failed: (t1->ty ==
                    t2->ty)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

First raised in GDC: http://bugzilla.gdcproject.org/show_bug.cgi?id=173

Confirmed is upstream: http://dpaste.dzfl.pl/3082491df870

Reduced test:
---
struct Cell
{
    dchar code;
    alias code this;
}

struct Row
{
    Cell[] fCells;
    Cell opIndex(int x) { return (x >= 0) ? fCells[x] : ' '; } 
}

--
May 03 2015