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: compiles incorrect program (2) #13274

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

cmd/compile: compiles incorrect program (2) #13274

dvyukov opened this issue Nov 16, 2015 · 2 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Nov 16, 2015

package A
var f=func() {
    {
        f:=2
        _=f
        f=9
    }
$ go tool compile -oldparser /tmp/test.go
/tmp/test.go:9: syntax error: unexpected EOF
$ go tool compile /tmp/test.go

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

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

@gopherbot
Copy link
Contributor

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

@golang golang locked and limited conversation to collaborators Nov 16, 2016
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