Summary: [CTFE] ICE when dereferencing a pointer to reference
                    type from 'in' of an AA
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-07-10 12:26:29 PDT ---
Test case:

static assert({
    auto a = [4:"1"];
    auto n = *(4 in a);
    return n; 
}() == "1");
x.d(3): Error: CTFE internal error: illegal reference value [4:"1"][4]

Assertion failed: (isRefValueValid(newval)), function createRefValue, file
interpret.c, line 4978.
Abort trap

The ICE also happens when the string "1" is replaced by any reference type

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

Reply via email to