[Issue 5890] ICE and wrong scope problem for 2nd argument in static assert with DMD on git master
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 26 05:21:16 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5890
kennytm at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #2 from kennytm at 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: -------
More information about the Digitalmars-d-bugs
mailing list