www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14895] New: ICE on array operation when its result is

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: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

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)

--
Aug 09 2015