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: syntax error when const & label names overlap #13684

Closed
benburkert opened this issue Dec 18, 2015 · 2 comments
Closed

cmd/compile: syntax error when const & label names overlap #13684

benburkert opened this issue Dec 18, 2015 · 2 comments
Milestone

Comments

@benburkert
Copy link
Contributor

The following example fails to compile with syntax error: unexpected :, expecting semicolon or newline or } on go1.6beta1:

package main

const (
    test = 1
)

func main() {
    goto test
test:
}
@ianlancetaylor ianlancetaylor changed the title syntax error when const & label names overlap cmd/compile: syntax error when const & label names overlap Dec 18, 2015
@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Dec 18, 2015
@griesemer
Copy link
Contributor

started

@gopherbot
Copy link

CL https://golang.org/cl/18060 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