Mercurial > projects > ldc
diff dmd/declaration.c @ 658:50383e476c7e
Upgraded frontend to DMD 1.035
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 06 Oct 2008 16:22:11 +0200 |
parents | 45a67b6f1310 |
children | 041c1596d217 |
line wrap: on
line diff
--- a/dmd/declaration.c Mon Oct 06 14:37:00 2008 +0200 +++ b/dmd/declaration.c Mon Oct 06 16:22:11 2008 +0200 @@ -898,6 +898,9 @@ if (init) { + sc = sc->push(); + sc->stc &= ~(STCconst | STCinvariant | STCpure); + ArrayInitializer *ai = init->isArrayInitializer(); if (ai && tb->ty == Taarray) { @@ -1031,6 +1034,7 @@ init = i2; // no errors, keep result } } + sc = sc->pop(); } }