http://d.puremagic.com/issues/show_bug.cgi?id=4066

           Summary: [ICE] enum AA get
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2010-04-05 05:44:14 PDT ---
void main() {
    enum int[string] aa = ["aa":1, "bb":2];
    string s = "xx";
    int r = aa.get(s, -1);
}


dmd 2.042 gives:
Internal error: e2ir.c 4600

The error vanishes if aa is not an enum.

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

Reply via email to