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: [email protected]
          Reporter: [email protected]

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

--

Reply via email to