Skip to content

Commit

Permalink
Merge pull request #3561 from yebblies/sc2shadow
Browse files Browse the repository at this point in the history
[DDMD] Fix variable shadowing
  • Loading branch information
dnadlinger committed May 20, 2014
2 parents 8fb386b + e29446b commit fb60a98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/struct.c
Expand Up @@ -269,10 +269,10 @@ void AggregateDeclaration::semantic3(Scope *sc)
Dsymbol *s = ti->toAlias();
Expression *e = new DsymbolExp(Loc(), s, 0);

Scope *sc2 = ti->tempdecl->scope->startCTFE();
sc2->tinst = sc->tinst;
e = e->semantic(sc2);
sc2->endCTFE();
Scope *sc3 = ti->tempdecl->scope->startCTFE();
sc3->tinst = sc->tinst;
e = e->semantic(sc3);
sc3->endCTFE();

e = e->ctfeInterpret();
getRTInfo = e;
Expand Down

0 comments on commit fb60a98

Please sign in to comment.