[Issue 6282] New: [CTFE] ICE when dereferencing a pointer to reference type from 'in' of an AA
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 10 12:31:36 PDT 2011
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: nobody at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at 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: -------
More information about the Digitalmars-d-bugs
mailing list