[Issue 15210] New: [ICE] (glue.c at 1489) with tuples and AAs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 16 09:18:33 PDT 2015


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

          Issue ID: 15210
           Summary: [ICE] (glue.c at 1489) with tuples and AAs
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bearophile_hugs at eml.cc

DMD v.2.069.0-b2:

Compile with -inline:

void main() {
    import std.typecons: Tuple;
    import std.bigInt: BigInt;   
    alias Foo = Tuple!(BigInt);
    static Foo[BigInt] cache;
    auto x = Foo(BigInt(0));
    BigInt[] arr;
    foreach (y; arr)
        cache[y] = x;
}



Assertion failure: '0' on line 1489 in file 'glue.c'

Related to Issue 10632?

--


More information about the Digitalmars-d-bugs mailing list