Changeset 212

Show
Ignore:
Timestamp:
10/13/09 23:16:28 (2 years ago)
Author:
walter
Message:

bugzilla 3316

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dmd-1.x/src/expression.c

    r202 r212  
    43884388    if (!s->isVarDeclaration()) 
    43894389    { 
    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(); 
    43914397    s->parent = sc->parent; 
    43924398    } 
  • trunk/src/expression.c

    r210 r212  
    45444544    if (!s->isVarDeclaration()) 
    45454545    { 
    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(); 
    45474553    s->parent = sc->parent; 
    45484554    }