Skip to content
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: autotmp recorded as live on entry #13264

Closed
dvyukov opened this issue Nov 16, 2015 · 4 comments
Closed

cmd/compile: autotmp recorded as live on entry #13264

dvyukov opened this issue Nov 16, 2015 · 4 comments

Comments

@dvyukov
Copy link
Member

dvyukov commented Nov 16, 2015

package p

func f() {
    for ; true; []map[int]int{}[0][0] = 0 {
    }
}

$ go build -race gogo.go

./gogo.go:3: internal error: f autotmp_0002 (type []map[int]int) recorded as live on entry

go version devel +25a28da Sun Nov 15 23:41:28 2015 +0000 linux/amd64

@dvyukov
Copy link
Member Author

dvyukov commented Nov 16, 2015

@rsc @griesemer

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Nov 16, 2015
@griesemer
Copy link
Contributor

Unrelated to new parser. The error also appears with:
go build -race -gcflags=-oldparser foo.go

@gopherbot
Copy link

CL https://golang.org/cl/17494 mentions this issue.

@gopherbot
Copy link

CL https://golang.org/cl/17815 mentions this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants