1 diff -Nurp a/src/dmd/attrib.c b/src/dmd/attrib.c
2 --- a/src/dmd/attrib.c 2012-04-17 12:02:10.224883217 +0200
3 +++ b/src/dmd/attrib.c 2012-04-17 12:31:56.293554287 +0200
4 @@ -1402,6 +1402,23 @@ void StaticIfDeclaration::setScope(Scope
6 // But do set the scope, in case we need it for forward referencing
9 + // Set the scopes for both the decl and elsedecl, as we don't know yet
10 + // which will be selected, and the scope will be the same regardless
12 + for (int j = 0; j < 2; j++)
16 + for (size_t i = 0; i < d->dim; i++)
18 + Dsymbol *s = (*d)[i];
27 void StaticIfDeclaration::semantic(Scope *sc)