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: accepts invalid identifiers #11359

Closed
dvyukov opened this issue Jun 23, 2015 · 1 comment
Closed

cmd/compile: accepts invalid identifiers #11359

dvyukov opened this issue Jun 23, 2015 · 1 comment
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Jun 23, 2015

Gc successfully compiles the following program:

package a
var ۶ = 0

It must reject it, as U+06F6 is not classified as Letter (it is a digit):
http://graphemica.com/%DB%B6

go/ast parser correctly rejects the program with:

test.go:2:5: illegal character U+06F6 '۶'
@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Jul 11, 2015
@gopherbot
Copy link

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

@rsc rsc closed this as completed in 247959d Nov 16, 2015
@golang golang locked and limited conversation to collaborators Nov 16, 2016
@rsc rsc removed their assignment Jun 23, 2022
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