Mercurial > projects > ddmd
diff dmd/AnonDeclaration.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 | 43073c7c7769 |
children | 23280d154c5b |
line wrap: on
line diff
--- a/dmd/AnonDeclaration.d Mon Aug 30 18:42:04 2010 +0400 +++ b/dmd/AnonDeclaration.d Mon Aug 30 19:56:27 2010 +0400 @@ -100,7 +100,7 @@ //printf("\tsetting ad.sizeok %p to 2\n", ad); if (!sc.anonAgg) { - scope_ = scx ? scx : new Scope(sc); ///< + scope_ = scx ? scx : sc.clone(); scope_.setNoFree(); scope_.module_.addDeferredSemantic(this); }