Changeset 212
- Timestamp:
- 10/13/09 23:16:28 (2 years ago)
- Files:
-
- branches/dmd-1.x/src/expression.c (modified) (1 diff)
- trunk/src/expression.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dmd-1.x/src/expression.c
r202 r212 4388 4388 if (!s->isVarDeclaration()) 4389 4389 { 4390 declaration->semantic(sc); 4390 Scope *sc2 = sc; 4391 if (sc2->stc & (STCpure | STCnothrow)) 4392 sc2 = sc->push(); 4393 sc2->stc &= ~(STCpure | STCnothrow); 4394 declaration->semantic(sc2); 4395 if (sc2 != sc) 4396 sc2->pop(); 4391 4397 s->parent = sc->parent; 4392 4398 } trunk/src/expression.c
r210 r212 4544 4544 if (!s->isVarDeclaration()) 4545 4545 { 4546 declaration->semantic(sc); 4546 Scope *sc2 = sc; 4547 if (sc2->stc & (STCpure | STCnothrow)) 4548 sc2 = sc->push(); 4549 sc2->stc &= ~(STCpure | STCnothrow); 4550 declaration->semantic(sc2); 4551 if (sc2 != sc) 4552 sc2->pop(); 4547 4553 s->parent = sc->parent; 4548 4554 }
