comparison dmd/TemplateMixin.d @ 89:37b95c347975

Fixed an obscure bug with i variable being reused
author korDen
date Mon, 30 Aug 2010 23:25:50 +0400
parents b17640f0e4e8
children acd69f84627e
comparison
equal deleted inserted replaced
88:23280d154c5b 89:37b95c347975
342 } 342 }
343 } 343 }
344 344
345 override void semantic2(Scope sc) 345 override void semantic2(Scope sc)
346 { 346 {
347 int i;
348
349 if (semanticRun >= 2) 347 if (semanticRun >= 2)
350 return; 348 return;
351 semanticRun = 2; 349 semanticRun = 2;
352 version (LOG) { 350 version (LOG) {
353 printf("+TemplateMixin.semantic2('%s')\n", toChars()); 351 printf("+TemplateMixin.semantic2('%s')\n", toChars());
372 } 370 }
373 } 371 }
374 372
375 override void semantic3(Scope sc) 373 override void semantic3(Scope sc)
376 { 374 {
377 int i;
378
379 if (semanticRun >= 3) 375 if (semanticRun >= 3)
380 return; 376 return;
381 semanticRun = 3; 377 semanticRun = 3;
382 version (LOG) { 378 version (LOG) {
383 printf("TemplateMixin.semantic3('%s')\n", toChars()); 379 printf("TemplateMixin.semantic3('%s')\n", toChars());