[Issue 828] New: expression.c:1904: virtual Expression* ThisExp::semantic(Scope*): Assertion `global.errors || var' failed.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 10 16:00:58 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=828
Summary: expression.c:1904: virtual Expression*
ThisExp::semantic(Scope*): Assertion `global.errors ||
var' failed.
Product: D
Version: 1.00
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: a.panek at brainsware.org
Following program results in given assertion error:
import std.stdio;
abstract class A {
void *ref;
void func ( ) {
writefln( (cast(typeof(this.classinfo))this.ref).name );
}
}
class B : A {
this ( ) {
this.ref = &this.classinfo;
}
}
void main ( ) {
B = new B;
B.func();
}
/+
jim at panicroom:~/sketches/d$ build -full deriveclassinfo.d
dmd: expression.c:1904: virtual Expression* ThisExp::semantic(Scope*):
Assertion `global.errors || var' failed.
+/
--
More information about the Digitalmars-d-bugs
mailing list