www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15690] New: [ICE] backend/symbol.c 1032

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

          Issue ID: 15690
           Summary: [ICE] backend/symbol.c 1032
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: aliloko gmail.com

DMD 2.070 crash with the evil following construct:


-----------------

import std.stdio;
import std.typecons;
import std.range;

void main() {

    int id = 0;
    switch (id) {


        static immutable myArray = iota(100).array;

         foreach(i; myArray) 
        {
            case i:
                writefln("i: %d", i);
                break;
        }

        default: ;

    }

}


-----------------

http://dpaste.dzfl.pl/4acbf36da8a4

--
Feb 16 2016