www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14132] New: [ICE] error on arrays


          Issue ID: 14132
           Summary: [ICE] error on arrays
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: minor
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: misugi-pwnu live.fr


I have an ICE when trying to compile this code :

module main;

import std.stdio;

void main(string[] args)
    bool[][] components = [[false, false]];
    bool[] masks = [true, false];

    auto wat = (components[0][] & masks[])[];

C:\D\dmd2\windows\bin\dmd.exe -debug -gc "main.d" "Entity.d" "EntityManager.d"
"EventManager.d"  "-IC:\D\dmd2\src\druntime\import" "-IC:\D\dmd2\src\phobos"

Internal error: e2ir.c 1902
Exit code 1

I don't  remember what I was trying to do, but I tried to give you minimal

Feb 06 2015