We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
gccgo successfully compiles the following program:
package a var e = "\X00"
While gc and go/types say:
go.go:2: unknown escape sequence: X go.go:2:11: unknown escape sequence
The spec allows only lower-case x for hex-encoded chars.
gcc version 6.0.0 2015070 (experimental) (GCC)
The text was updated successfully, but these errors were encountered:
@paranoiacblack
Sorry, something went wrong.
CL https://golang.org/cl/12158 mentions this issue.
golang/gofrontend@4611738
compiler: Disallow rune literals with '\X'.
5f7bd04
http://golang.org/ref/spec#Rune_literals states that rune literals encoded as hex bytes must begin with lowercase '\x'. Fixes golang/go#11575. Reviewed-on: https://go-review.googlesource.com/12158 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226184 138bc75d-0d04-0410-961f-82ee72b054a4
37aa341
http://golang.org/ref/spec#Rune_literals states that rune literals encoded as hex bytes must begin with lowercase '\x'. Fixes golang/go#11575. Reviewed-on: https://go-review.googlesource.com/12158 From-SVN: r226184
No branches or pull requests
gccgo successfully compiles the following program:
While gc and go/types say:
The spec allows only lower-case x for hex-encoded chars.
gcc version 6.0.0 2015070 (experimental) (GCC)
The text was updated successfully, but these errors were encountered: