January 11, 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@digitalmars.com
        ReportedBy: a.panek@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@panicroom:~/sketches/d$ build -full deriveclassinfo.d
dmd: expression.c:1904: virtual Expression* ThisExp::semantic(Scope*):
Assertion `global.errors || var' failed.

+/


-- 

February 23, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=828


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from thomas-dloop@kuehne.cn  2007-02-23 16:36 -------
Fixed in DMD-1.005

Added to DStress as http://dstress.kuehne.cn/nocompile/b/bug_expression_1904_A.d


--