DMD compiler choking?

Regan Heath regan at netwin.co.nz
Wed Apr 5 22:00:52 PDT 2006


On Thu, 6 Apr 2006 04:48:07 +0000 (UTC), Jeremy Gibson <jtgibson telus net  
Jeremy_member at pathlink.com> wrote:
> I've been dabbling around with D source code for a while, but never  
> actually
> tried to compile anything just yet.  I finally got around to compiling  
> one of my
> projects, and run into this error on the very first class definition I  
> have (if
> I comment out any class with /+ +/, it always occurs on the very next  
> class
> definition in the file):
>
> data.d(45): identifier 'Object' is not defined
> data.d(45): Object is used as a type
>
> What's worse, however, is that the compiler is encountering an assertion
> failure:
>
> Assertion failure: 'b->type->ty == Tclass' on line 284 in file 'class.c'
>
> ..which leads me to believe that the dmd compiler itself is flaking out.
>
> Any insights?

If you post a cut-down (yet complete) code example that exhibits the  
problem you'll get a faster response :)

Regan



More information about the Digitalmars-d-learn mailing list