Changeset 632

Show
Ignore:
Timestamp:
08/27/10 03:25:28 (1 year ago)
Author:
walter
Message:

Regression(2.046, 1.061): compiler errors using startsWith in CTFE

Files:

Legend:

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

    r515 r632  
    35373537        {   // Try to reset things so we can try again later to instantiate it 
    35383538            tempdecl->instances.remove(tempdecl_instance_idx); 
    3539             semanticRun = 0; 
    3540             inst = NULL; 
     3539            if (!(sc->flags & SCOPEstaticif)) 
     3540            {   // Bugzilla 4302 for discussion 
     3541                semanticRun = 0; 
     3542                inst = NULL; 
     3543            } 
    35413544        } 
    35423545    } 
  • trunk/src/template.c

    r527 r632  
    39743974        {   // Try to reset things so we can try again later to instantiate it 
    39753975            tempdecl->instances.remove(tempdecl_instance_idx); 
    3976             semanticRun = 0; 
    3977             inst = NULL; 
     3976            if (!(sc->flags & SCOPEstaticif)) 
     3977            {   // Bugzilla 4302 for discussion 
     3978                semanticRun = 0; 
     3979                inst = NULL; 
     3980            } 
    39783981        } 
    39793982    }