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

          Issue ID: 14895
           Summary: ICE on array operation when its result is concatenated
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

Test code:

void main()
{
    int[] a;
    int[] b = (a[] + 1) ~ [1,2];
}

output:

assert e2ir.c(1959) !((tb1->ty == Tarray || tb1->ty == Tsarray || tb2->ty ==
Tarray || tb2->ty == Tsarray) && tb2->ty != Tvoid && op != OPeq && op !=
OPandand && op != OPoror)

--

Reply via email to