http://d.puremagic.com/issues/show_bug.cgi?id=7876
Summary: [CTFE] assertion failure on invalid stack reference
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: CTFE, ice
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2012-04-09 10:17:14 PDT ---
DMD 2.058/2.059head:
int* bar(){int x;auto ptr = &x;return ptr;}
static assert({*bar()=2;return 1;}());
dmd: interpret.c:103: void CtfeStack::setValue(VarDeclaration*, Expression*):
Assertion `v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < stackPointer()'
failed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------