-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/compile: confusion between variable name "init" in method wrapper and function "init" #29610
Comments
CC @aclements |
The key difference with CC @josharian |
I have a small test case. Put this file into cmd/go/testdata/script/gc_init_confusion.txt and run
|
Thanks. This indicates that the compiler is creating |
When compiling package b, we construct the LSym for
This appears to be when we're compiling a wrapper for the It later calls SetFunc for the actual
|
I think the reordering is a consequence of on-demand imports: we don't actually process the Somehow we need to mark /cc @griesemer @mdempsky for thoughts and because LSyms make me sad. |
Change https://golang.org/cl/157017 mentions this issue: |
@aclements @ianlancetaylor thank you for quick fix for the record the https://golang.org/cl/157017 CL is fixing the issue for me |
@aclements @ianlancetaylor This issue is currently labeled release-blocker with milestone Go 1.12. I can't tell whether it's meant to be a blocker for the final Go 1.12 release, or also for Go 1.12 RC 1. Do you think it should block Go 1.12 RC 1 from being made? If not, I was planning on making Go 1.12 RC 1 tomorrow. /cc @andybons |
This is a blocker for the final 1.12 release but it is not a blocker for 1.12rc1. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Affects master/1.12, 1.11 and older are not affected
What operating system and processor architecture are you using (
go env
)?linux/amd64
What did you do?
What did you expect to see?
Build passing and producing working binary
What did you see instead?
The text was updated successfully, but these errors were encountered: