comparison dmd/expression.c @ 1627:e83f0778c260

Merge DMD r321: bugzilla 3575 CTFE: member structs not initialized correctly --- dmd/expression.c | 4 +--- dmd/interpret.c | 32 +++++++++----------------------- dmd/mtype.c | 48 +++++++++++++++++++++++++++++++++++++++++++----- dmd/mtype.h | 2 ++ 4 files changed, 55 insertions(+), 31 deletions(-)
author Leandro Lucarella <llucax@gmail.com>
date Wed, 06 Jan 2010 15:18:23 -0300
parents 8fa4ab3dcc88
children b07d683ba4d0
comparison
equal deleted inserted replaced
1626:8fa4ab3dcc88 1627:e83f0778c260
3262 e = i2->toExpression(); 3262 e = i2->toExpression();
3263 v->scope = NULL; 3263 v->scope = NULL;
3264 } 3264 }
3265 } 3265 }
3266 else 3266 else
3267 { e = v->type->defaultInit(); 3267 e = v->type->defaultInitLiteral(loc);
3268 e->loc = loc;
3269 }
3270 offset = v->offset + v->type->size(); 3268 offset = v->offset + v->type->size();
3271 } 3269 }
3272 elements->push(e); 3270 elements->push(e);
3273 } 3271 }
3274 3272