[Issue 12539] New: Compiler crash when looking up a nonexistent tuple element in an associative array
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Apr  7 11:29:31 PDT 2014
    
    
  
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: nobody at puremagic.com
        ReportedBy: gamecubic at hotmail.com
--- Comment #0 from gamecubic at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list