Possible Bug?

Shripad K assortmentofsorts at gmail.com
Wed Sep 12 13:59:41 PDT 2012


I have this code, which worked fine in  dmd 2.058:

private GC gc;

private alias gc.malloc  bson_malloc_func;
private alias gc.realloc  bson_realloc_func;
private alias gc.free      bson_free_func;

With dmd 2.060 I get this error when I compile:
Db/Bson.d(96): Error: variable Db.Bson.gc initializer required 
for type GC

Am I doing something wrong?

Shripad K


More information about the Digitalmars-d mailing list