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
http://play.golang.org/p/icbjgkx71B
got:
gc produces the initialization order: c b a .
want:
The variables b and c are independent of each other, and b is declared before c, so the
order should be: b c a .
gccgo reports the order: b c a .
Based on spec clarification https://golang.org/cl/99020043 (issue #6703).
The text was updated successfully, but these errors were encountered:
rsc
changed the title
cmd/gc: independent variables should be initialized in declaration order
cmd/compile: independent variables should be initialized in declaration order
Jun 8, 2015
The text was updated successfully, but these errors were encountered: