Merged 2.056

This commit is contained in:
Alexey Prokhin
2011-12-02 21:50:52 +04:00
65 changed files with 6538 additions and 1122 deletions

View File

@@ -813,6 +813,9 @@ Initializer *ExpInitializer::semantic(Scope *sc, Type *t, int needInterpret)
if (!global.gag && olderrors != global.errors)
return this; // Failed, suppress duplicate error messages
if (exp->op == TOKtype)
error("initializer must be an expression, not '%s'", exp->toChars());
// Make sure all pointers are constants
if (needInterpret && hasNonConstPointers(exp))
{