# HG changeset patch # User korDen # Date 1284866217 -14400 # Node ID 2e2ed2632cccd05255e37d5e66ce04c3a189ce9d # Parent 80f4806ffa13c905b1d60e467d742189c59d22bd overloadApply bug fixed (visitor is a struct and thus should be passed by reference) diff -r 80f4806ffa13 -r 2e2ed2632ccc dmd/expression/Util.d --- a/dmd/expression/Util.d Sun Sep 19 06:54:31 2010 +0400 +++ b/dmd/expression/Util.d Sun Sep 19 07:16:57 2010 +0400 @@ -136,7 +136,7 @@ * 0 continue * 1 done */ -bool overloadApply(Visitor)(FuncDeclaration fstart, Visitor visitor) +bool overloadApply(Visitor)(FuncDeclaration fstart, ref Visitor visitor) { FuncDeclaration f; Declaration d;