Mercurial > projects > ldc
comparison dmd2/init.c @ 847:356e65836fb5
Merged DMD 2.021 frontend.
Removed generated files from dmd/dmd2 dirs.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 13 Dec 2008 16:14:37 +0100 |
parents | f04dde6e882c |
children | 638d16625da2 |
comparison
equal
deleted
inserted
replaced
846:bc982f1ad106 | 847:356e65836fb5 |
---|---|
524 | 524 |
525 Initializer *ExpInitializer::semantic(Scope *sc, Type *t) | 525 Initializer *ExpInitializer::semantic(Scope *sc, Type *t) |
526 { | 526 { |
527 //printf("ExpInitializer::semantic(%s), type = %s\n", exp->toChars(), t->toChars()); | 527 //printf("ExpInitializer::semantic(%s), type = %s\n", exp->toChars(), t->toChars()); |
528 exp = exp->semantic(sc); | 528 exp = exp->semantic(sc); |
529 exp = resolveProperties(sc, exp); | |
529 exp = exp->optimize(WANTvalue | WANTinterpret); | 530 exp = exp->optimize(WANTvalue | WANTinterpret); |
530 Type *tb = t->toBasetype(); | 531 Type *tb = t->toBasetype(); |
531 | 532 |
532 /* Look for case of initializing a static array with a too-short | 533 /* Look for case of initializing a static array with a too-short |
533 * string literal, such as: | 534 * string literal, such as: |