comparison dmd/VarDeclaration.d @ 87:b17640f0e4e8

Fixed a bug with a Scope.this(Scope enclosing) being called instead of Scope.clone() method (as a copy ctor replacement)
author korDen
date Mon, 30 Aug 2010 19:56:27 +0400
parents ad4792a1cfd6
children 23280d154c5b
comparison
equal deleted inserted replaced
83:ee670dd808a8 87:b17640f0e4e8
623 if (global.gag == 0) 623 if (global.gag == 0)
624 global.errors = errors; // act as if nothing happened 624 global.errors = errors; // act as if nothing happened
625 version (DMDV2) { 625 version (DMDV2) {
626 /* Save scope for later use, to try again 626 /* Save scope for later use, to try again
627 */ 627 */
628 scope_ = new Scope(sc); 628 scope_ = sc.clone();
629 scope_.setNoFree(); 629 scope_.setNoFree();
630 } 630 }
631 } 631 }
632 else if (ei) 632 else if (ei)
633 { 633 {
644 ///version (DMDV2) { 644 ///version (DMDV2) {
645 else 645 else
646 { 646 {
647 /* Save scope for later use, to try again 647 /* Save scope for later use, to try again
648 */ 648 */
649 scope_ = new Scope(sc); 649 scope_ = sc.clone();
650 scope_.setNoFree(); 650 scope_.setNoFree();
651 } 651 }
652 ///} 652 ///}
653 } 653 }
654 else 654 else