compiler: better error for unexpected digit
authorIan Lance Taylor <iant@golang.org>
Tue, 15 Dec 2020 05:26:33 +0000 (21:26 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Dec 2020 20:54:25 +0000 (12:54 -0800)
commitf23753c710d54fdf6f6c6cbe93c5b0fdbf209fc8
treef2d7daa0ca6fad7cbabafb17eb5461198edd99d8
parenta582a319c1015f1f604b107bd25075f01d5a7e67
compiler: better error for unexpected digit

A digit character is not invalid in general, but it's not permitted
at the start of an identifier.  Report a better error message.
The test case is issue11359.go in the source repo.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/278174
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/lex.cc