[svn r227] Fixed: crash in lifetime.d when resizing array of AAs by .length assignment.

This commit is contained in:
Tomas Lindquist Olsen
2008-05-27 19:53:29 +02:00
parent a954f06e90
commit 6b735db510
4 changed files with 18 additions and 10 deletions

View File

@@ -2333,6 +2333,11 @@ Expression *TypeAArray::defaultInit(Loc loc)
return e;
}
int TypeAArray::isZeroInit()
{
return 1;
}
int TypeAArray::checkBoolean()
{
return TRUE;

View File

@@ -360,6 +360,7 @@ struct TypeAArray : TypeArray
Expression *dotExp(Scope *sc, Expression *e, Identifier *ident);
Expression *defaultInit(Loc loc);
MATCH deduceType(Scope *sc, Type *tparam, TemplateParameters *parameters, Objects *dedtypes);
int isZeroInit();
int checkBoolean();
TypeInfoDeclaration *getTypeInfoDeclaration();
int hasPointers();