-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: compiler segfaults in cmd/compile/internal/gc.markUsedIfaceMethod #45258
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
Similar issue reported in the past: #29870. Anyway this seems to be fixed on tip. Go 1.15 is also not affected. cc @randall77 for a decision about Go 1.16. |
This bug was introduced in 39dde09, which use This was partially fixed in cc90e7a, since when we don't walk through function name I think the right fix, is making |
I don't think this needs a backport fix for 1.16. There is a trivial workaround (don't use
Does tip still need a fix? I'm confused by the "partial" part of that statement. |
@randall77 commit cc90e7a make function name If it's called in other phases, e.g during typecheck, the bug is triggered again. |
So does that ever happen? |
No, at current tip. |
Change https://golang.org/cl/311130 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/TGtWALJVzT9
What did you expect to see?
Program compiles
What did you see instead?
Note: this seems specific to the function name
_
. If I rename similar function to a proper function name, the code compiles (unless like in example here where it needs to bemain
to compile).The text was updated successfully, but these errors were encountered: