-
Notifications
You must be signed in to change notification settings - Fork 18k
gccgoimporter: crash on package with map alias #31540
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
Change https://golang.org/cl/172603 mentions this issue: |
Change https://golang.org/cl/173037 mentions this issue: |
Import changes from std lib version, specifically https://golang.org/cl/172603 https://golang.org/cl/165739 which contain to a fix for reading of import data as well as a couple of new test cases. Updates golang/go#31540. Change-Id: Iecb1a5a5a7bf100b2ebb871196868e96b1a50611 Reviewed-on: https://go-review.googlesource.com/c/tools/+/173037 Run-TryBot: Than McIntosh <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
Change https://golang.org/cl/173440 mentions this issue: |
Revise the fix for #31540 to take into account the possibility that we may see an alias to a name that has already been installed into package scope. This scenario is not possible to reproduce with the current importer unit tests; changes to the harness to enable this scenario will be added in a later CL. Updates #31540. Change-Id: Ie155d5e0b998604177a78471cba2413f57d40229 Reviewed-on: https://go-review.googlesource.com/c/go/+/173440 Reviewed-by: Ian Lance Taylor <[email protected]>
Change https://golang.org/cl/173777 mentions this issue: |
Import changes from std lib version, specifically https://golang.org/cl/173440 which rolls out a more robust fix for issue 31540. Updates golang/go#31540. Change-Id: Ibeeb00ffd0ee6456d50fd4a243a1162f3940ad68 Reviewed-on: https://go-review.googlesource.com/c/tools/+/173777 Run-TryBot: Than McIntosh <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
What version of Go are you using (
go version
)?Using Go tip:
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Linux amd64
go env
OutputWhat did you do?
Compile this package with gccgo:
https://play.golang.org/p/GbgthBKWc7N
Then import using gccgoimporter.
What did you expect to see?
Successful import.
What did you see instead?
Panic in parseField:
It looks as though the code for handling anonymous fields is not expecting to see an anon field that is an alias to a map type.
The text was updated successfully, but these errors were encountered: