[Issue 8484] New: [CTFE] Assertion failure: 'thisval && thisval->op == TOKclassreference' on line 4896 in file 'interpret.c'.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 31 05:12:43 PDT 2012


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

           Summary: [CTFE] Assertion failure: 'thisval && thisval->op ==
                    TOKclassreference' on line 4896 in file 'interpret.c'.
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: sweatygarlic at yahoo.co.jp


--- Comment #0 from sweatygarlic at yahoo.co.jp 2012-07-31 05:12:41 PDT ---
class C {
    bool b() {return true;}
}

struct S {
    C c;
}

bool t( ref C c ){
    return c.b;
}

bool test() {
    auto s = S(new C);
    return t(s.c);
}
static assert(test());
---
causes "Assertion failure: 'thisval && thisval->op == TOKclassreference' on
line 4896 in file 'interpret.c'" on dmd 2.059

this is similar to the issue 7158
http://d.puremagic.com/issues/show_bug.cgi?id=7158

and the issue 4257
http://d.puremagic.com/issues/show_bug.cgi?id=4257

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