www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - minor bug

The function

void TypeIdentifier::toCBuffer2(OutBuffer *buf, Identifier *ident)

{

OutBuffer tmp;

tmp.writestring(this->ident->toChars());

toCBuffer2Helper(&tmp, NULL);

buf->prependstring(tmp.toChars());

if (ident)

{ buf->writeByte(' ');

buf->writestring(ident->toChars());

}

}



will crash when ident is NULL ( mtype.c , line 2737 )



Charlie
Apr 23 2005