On 15 May 2015 at 09:08, Johannes Pfau via D.gnu <[email protected]> wrote: > Am Thu, 14 May 2015 19:02:48 +0200 > schrieb Johannes Pfau <[email protected]>: > >> ... > > TLDR > As a workaround replace > > globalSum += otherFunc(); > > which GDC currently treats as > > globalSum = globalSum + otherFunc(); > > with > > globalSum = otherFunc() + globalSum; >
That is an interesting workaround, should we perhaps reconsider our code generation here? Iain.
