Skip to content

gccgo: accepts invalid UTF-8 #11527

Description

@dvyukov

gcc compiles the following program, while gc and go/types reject it:

package G
//line \FF:8

(that \FF needs to be converted to actual FF byte)
gc and go/types say:

go.go:2:8: illegal UTF-8 encoding
go.go:2: illegal UTF-8 sequence ff 3a

Compilers should agree on validity of this program.

gcc version 6.0.0 2015070 (experimental) (GCC)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions