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: have Val #12686
Comments
This is a compiler crash on valid code. |
Unsurprisingly, it's broken by the CL that combines Node.Val and Node.Opt
into a single shared field. (https://golang.org/cl/10531)
|
A slightly smaller test case is: package foo
func Crash(a uint) uint {
d := []uint{1 << a}
return d[0]
} The call to SetVal that makes the call to SetOpt explode later is from defaultlit. I don't understand what this is about at all :-) but it is setting the Val to nil; maybe setting Val to nil should not "count" when it comes to the checks SetOpt does? |
CL https://golang.org/cl/17031 mentions this issue. |
CL https://golang.org/cl/17124 mentions this issue. |
Fixes #12686. Change-Id: I7a9f49dbd1f60b1d0240de57787753b425f9548c Reviewed-on: https://go-review.googlesource.com/17031 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-on: https://go-review.googlesource.com/17124
http://play.golang.org/p/kn1aiXuG0l
The text was updated successfully, but these errors were encountered: