← Back to index
|
Original Bugzilla link
Bug 828 – expression.c:1904: virtual Expression* ThisExp::semantic(Scope*): Assertion `global.errors || var' failed.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2007-01-10T18:00:00Z
Last change time
2014-02-15T13:13:27Z
Assigned to
bugzilla
Creator
a.panek
Comments
Comment #0
by a.panek — 2007-01-10T18:00:53Z
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@panicroom:~/sketches/d$ build -full deriveclassinfo.d dmd: expression.c:1904: virtual Expression* ThisExp::semantic(Scope*): Assertion `global.errors || var' failed. +/
Comment #1
by thomas-dloop — 2007-02-23T16:36:37Z
Fixed in DMD-1.005 Added to DStress as
http://dstress.kuehne.cn/nocompile/b/bug_expression_1904_A.d