-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: nil pointer defer in outervalue #13265
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
This is unrelated to the new parser code. The bug also appears with: |
CL https://golang.org/cl/34929 mentions this issue. |
From what I understand, I also tried to isolate the problem in the source code, and it's the for loop's third assignment in main(). i.e the following snippet, for ; false; Var1, Var342, (*(((<-Var343)[(<-((*(Var393))[(((make([][0]int, 0, 1))[(*(*(([]**int{})[(*((Var406)[Var476]))-(1)])))+(1)])[(<-make(chan int, 1))])+(1)])[(*(([]*int{})[(<-make(chan int))]))+(1)])])[(int)((Var667)[((func(chan string, uint) int)(nil))(make(chan string), uint(1))])])) = false, ((func(bool, int, rune, int16) (chan complex128, chan complex64, []int))(nil)), (*[]interface{})(nil) {
} |
Reproducer:
https://gist.githubusercontent.com/dvyukov/20774908b7ea4e70a16d/raw/b0df0a7818189971dd47daa7d93fdc5b215decf4/test.go
$ go build -race gogo.go
go version devel +25a28da Sun Nov 15 23:41:28 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered: