diff dmd/ScopeStatement.d @ 154:14feb7ae01a6

* changed the build system to build a release version if the debug one compiles and enabled warnings + reduced warnings by adding appriopriate overrides + IfStatement.interpret() + ScopeStatement.interpret() + TypeSArray.constConv() + TypedefDeclaration.syntaxCopy() * fixed a bug in StringExp
author trass3r
date Wed, 15 Sep 2010 15:32:31 +0200
parents e28b18c23469
children e3afd1303184
line wrap: on
line diff
--- a/dmd/ScopeStatement.d	Wed Sep 15 03:58:55 2010 +0200
+++ b/dmd/ScopeStatement.d	Wed Sep 15 15:32:31 2010 +0200
@@ -125,7 +125,12 @@
 	
     override Expression interpret(InterState istate)
 	{
-		assert(false);
+version(LOG)
+		writef("ScopeStatement::interpret()\n");
+
+		if (istate.start is this)
+			istate.start = null;
+		return statement ? statement.interpret(istate) : null;
 	}
 
     override Statement inlineScan(InlineScanState* iss)