We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This program should print "1 2" but only prints "2" when inlining is enabled:
package main func main() { f()() } func f() func() { println(1); return g } func g() { println(2) }
The problem is when we replace f()() with a direct call to g(), we fail to preserve the side effects from evaluating f().
f()()
g()
f()
Pointed out by @danscales.
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/271219 mentions this issue: cmd/compile: fix miscompilation during inlining
cmd/compile: fix miscompilation during inlining
Sorry, something went wrong.
35693d0
No branches or pull requests
This program should print "1 2" but only prints "2" when inlining is enabled:
The problem is when we replace
f()()
with a direct call tog()
, we fail to preserve the side effects from evaluatingf()
.Pointed out by @danscales.
The text was updated successfully, but these errors were encountered: