Descriptioncmd/gc: fix detection of initialization loop.
The compiler computes initialization order by finding
a spanning tree between a package's global variables.
But it does so by walking both variables and functions
and stops detecting cycles between variables when they
mix with a cycle of mutually recursive functions.
Fixes issue 4847.
Patch Set 1 #Patch Set 2 : diff -r ca166884c853 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r ca166884c853 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r ca166884c853 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r ca166884c853 https://go.googlecode.com/hg/ #Patch Set 6 : diff -r 3833ddddde2b https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 7 : diff -r 80771ad49cb6 https://go.googlecode.com/hg/ #MessagesTotal messages: 16
|