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
{{ message }}
Repository navigation
cmd/compile: incorrect result for recursion with mutated global variable #74438
This is not a bug. Go is allowed to evaluate the two expressions in count + func1() in either order (spec). It currently evaluates func1() before evaluating count, which leads to a 0 result.
Activity
randall77 commentedon Jun 30, 2025
This is not a bug. Go is allowed to evaluate the two expressions in
count + func1()in either order (spec). It currently evaluatesfunc1()before evaluatingcount, which leads to a0result.zigo101 commentedon Jul 2, 2025
see https://go101.org/article/evaluation-orders.html