Summary: ICE when using .values on enum which is associative
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Jonathan M Davis <> 2011-02-15 02:26:28 
PST ---
On dmd 2.051, this code

import std.path;
import std.range;

enum aa = [5 : "hello"];

void main(string[] args)
    auto a = aa.values.front;

fails to compile, giving this error: Internal error: e2ir.c 4617
With the current beta, it gives: Internal error: e2ir.c 4835

This may or may not be a duplicate of bug# 4460. I don't know enough about the
compiler details to know for sure, but it does seem similar. It's definitely
not quite the same circumstances though, so I'm creating a new bug just in case
it is something separate.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to