[Issue 7876] New: [CTFE] assertion failure on invalid stack reference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 9 10:16:32 PDT 2012


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: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 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: -------


More information about the Digitalmars-d-bugs mailing list