You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In general, "does not work" is not the best way to describe optimizer problems; it is not specific enough.
Either a potential optimization is missed (code is slower than possible) or it is applied incorrectly (compiler converts working code into broken code). These are two very, very different things -- a missed optimization may never be fixed, where an incorrect optimization is a high-priority bug.
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
$ go build -gcflags "-m -l" c.go
What did you expect to see?
./c.go:4: main ([]byte)("test") does not escape
What did you see instead?
./c.go:4: ([]byte)("test") escapes to heap
Does this issue reproduce with the latest release (go1.7.1)?
System details
The text was updated successfully, but these errors were encountered: