diff dmd/mtype.h @ 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 c61782a76dff
children
line wrap: on
line diff
--- a/dmd/mtype.h	Wed Jan 06 15:18:23 2010 -0300
+++ b/dmd/mtype.h	Wed Jan 06 15:18:23 2010 -0300
@@ -250,6 +250,7 @@
     virtual Expression *dotExp(Scope *sc, Expression *e, Identifier *ident);
     virtual unsigned memalign(unsigned salign);
     virtual Expression *defaultInit(Loc loc = 0);
+    virtual Expression *defaultInitLiteral(Loc loc = 0);
     virtual int isZeroInit(Loc loc = 0);		// if initializer is 0
 #if IN_DMD
     virtual dt_t **toDt(dt_t **pdt);
@@ -582,6 +583,7 @@
     Expression *dotExp(Scope *sc, Expression *e, Identifier *ident);
     unsigned memalign(unsigned salign);
     Expression *defaultInit(Loc loc);
+    Expression *defaultInitLiteral(Loc loc);
     int isZeroInit(Loc loc);
     int checkBoolean();
 #if IN_DMD