http://d.puremagic.com/issues/show_bug.cgi?id=6282
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 AssignedTo: nob...@puremagic.com ReportedBy: kenn...@gmail.com --- Comment #0 from kenn...@gmail.com 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 (array/aa). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------