[Issue 15210] [REG2.064][ICE] (glue.c at 1489) with tuples and AAs
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Tue Oct 20 08:32:21 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15210
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Kenji Hara from comment #2)
> Reduced test case:
Sorry I was wrong, correct version is:
struct BigInt {}
template Tuple(Types...)
{
    struct Tuple
    {
        Types field;
        void opAssign(R)(R rhs)
        {
            field = rhs.field;
        }
    }
}
void main()
{
    alias Foo = Tuple!BigInt;
    Foo[BigInt] cache;
    auto x = Foo();
    cache[BigInt()] = x;
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list