-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
gccgo: accepts invalid UTF-8 #11527
Labels
Milestone
Comments
Is this still a problem? gc and go/types also accept the above program so it seems all compilers agree on the validity of the program. |
replace \ff with actual 0xff byte |
CL https://golang.org/cl/13905 mentions this issue. |
paranoiacblack
pushed a commit
to golang/gofrontend
that referenced
this issue
Sep 1, 2015
Fixes golang/go#11527. Change-Id: I94fd08ae67393c3422858bc6d1d1311d590c842f Reviewed-on: https://go-review.googlesource.com/13905 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
gcc compiles the following program, while gc and go/types reject it:
(that \FF needs to be converted to actual FF byte)
gc and go/types say:
Compilers should agree on validity of this program.
gcc version 6.0.0 2015070 (experimental) (GCC)
The text was updated successfully, but these errors were encountered: