https://d.puremagic.com/issues/show_bug.cgi?id=12539

           Summary: Compiler crash when looking up a nonexistent tuple
                    element in an associative array
           Product: D
           Version: unspecified
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: gamecu...@hotmail.com


--- Comment #0 from gamecu...@hotmail.com 2014-04-07 11:29:30 PDT ---
Happens on Windows 7 x86_64 with DMD 2.065

Does not happen on DPaste

```
template Tuple (E...)
{
    alias Tuple = E;
}

void main ()
{
    // Would be a string tuple.
    alias Foo = Tuple!();
    int[string] map = [];

    auto a = map[Foo[0]];
}
```

I would expect a build failure (as happens on DPaste), but not a compiler
crash.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to