[Issue 8253] New: ctfe stack assertion failed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 16 13:24:45 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8253

           Summary: ctfe stack assertion failed
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ellery-newcomer at utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2012-06-16 13:27:00 PDT ---
dmd 2.059

the [invalid] code:

class J {
    J j2(){
        return new J();
    }
}
J j() {
    static J m, func; 
    static func = m.j2();
    return func;
}

the compile:

dmd test.d

the fireworks:

dmd: interpret.c:94: Expression* CtfeStack::getValue(VarDeclaration*):
Assertion `v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < globalValues.dim'
failed.
Aborted (core dumped)

-- 
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