-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: The compiler does not detect an initialization loop #13343
New issue
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
Comments
FYI, gccgo reports
|
gotype reports:
|
Interestingly, swapping
Hence, in the first example, it will not detect the cycle on
In the second example, it will detect the cycle because
|
CL https://golang.org/cl/18159 mentions this issue. |
... as in the following program:
Related, though different issue here: #7320
go version go1.5.1 darwin/amd64
go version go1.5.1 linux/amd64
go version devel +af8cd3f Fri Nov 20 19:56:51 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered: