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: internal compiler error: cannot handle alias type declaration (issue #25838): Callback #48353
Comments
Note that go 1.15 is no longer supported, only the two most recent versions are (right now, 1.17 and 1.16). Anyway the 1.17 compiler crashes on this too. tip prints:
Which seems correct to me (so your reproducer does not compile). Possibly already fixed on tip? Do you have a reproducer that does compile? |
Hello! |
Thanks. So you don't have a program that crashes the tip compiler, I guess we can close this as fixed on tip(?) Feel free to comment if I got it wrong. |
Well, the first version of the program crashes the compiler. Is that an acceptable behaviour of the compiler ? |
This seems fixed on tip (so nothing more to do there), and the first version is a program that doesn't compile anyway, so even if it does crash 1.17, I think it may not be worth a backport (to 1.17.2 for example). |
A solution may not be required for backporting, but it should be fixed in latest version of Golang I think. Or ? |
After a major version is released (for example go1.17), minor releases are issued (1.17.1, etc...) following this policy:
In my opinion this doesn't qualify for a backport, since it's not a "serious problem without a workaround", given that the code doesn't compile anyway. So it would be fixed in go1.18 when it is released. Of course if we find a program that should compile (and it crashes the compiler), that would probably qualify for a backport. |
If you fix it for go1.18 is fine for me. |
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
)?Linux
go env
OutputWhat did you do?
Please see https://play.golang.org/p/5_1QLRDWwFL
What did you expect to see?
$ go run cw_prototype.go
Running callBack function - replace old cert with new cert: 'cert 1' in gRPC client
Running callBack function - replace old cert with new cert: 'cert 2' in gRPC client
Running callBack function - replace old cert with new cert: 'cert 3' in gRPC client
Running callBack function - replace old cert with new cert: 'cert 4' in gRPC client
Running callBack function - replace old cert with new cert: 'cert 5' in gRPC client
What did you see instead?
$ go run cw_prototype.go
command-line-arguments
.\cw_prototype.go:13:6: internal compiler error: cannot handle alias type declaration (issue #25838): Callback
Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new
The text was updated successfully, but these errors were encountered: