http://d.puremagic.com/issues/show_bug.cgi?id=5890


kenn...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #2 from kenn...@gmail.com 2011-04-26 05:17:35 PDT ---
The fix should be trivial:

diff --git a/src/staticassert.c b/src/staticassert.c
index 67a1e48..82aad9c 100644
--- a/src/staticassert.c
+++ b/src/staticassert.c
@@ -57,7 +57,7 @@ void StaticAssert::semantic2(Scope *sc)
     sc = sc->push(sd);
     sc->flags |= SCOPEstaticassert;
     Expression *e = exp->semantic(sc);
-    sc->pop();
+    sc = sc->pop();
     if (e->op == TOKerror)
         return;
     e = e->optimize(WANTvalue | WANTinterpret);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to