<pre class="notranslate">While debugging a memory problem I found something that looks like temporaries from
previous scopes are sometimes not garbage collected.

In this case disabling compiler optimizations got rid of the leak.

I tried to strip down the problem as much as possible:
<a href="http://play.golang.org/p/HR-7R_0f-C" rel="nofollow">http://play.golang.org/p/HR-7R_0f-C</a>

go version: tip (321d42ff40d3)</pre>
<p dir="auto">If we can get some indication of the compiler or toolchain version into the build ID hash, it would let people flip between different toolchains with the same GOPATH more easily. In particular, when you flipped it would notice that all the things in $GOROOT/pkg are out of date and rebuild them, whereas today you have to use go install -a or else you get object version conflicts from the compiler and/or linker.</p>
<p dir="auto">[Please do not close this as a duplicate of some other issue. This one describes what I plan to do.]</p>