Bug 8484 – [CTFE] Assertion failure: 'thisval && thisval->op == TOKclassreference' on line 4896 in file 'interpret.c'.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-07-31T05:12:00Z
Last change time
2015-06-09T05:10:41Z
Keywords
pull
Assigned to
nobody
Creator
sweatygarlic
Comments
Comment #0 by sweatygarlic — 2012-07-31T05:12:41Z
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