Skip to content

gccgo: accepts program with invalid identifier (2) #11547

Description

@dvyukov

gccgo successfully compiles the following program:

package a
var _ *i

while gc and go/types reject it with:

go.go:2: undefined: i
go.go:2:7: undeclared name: i

gccgo must reject it too.
#11522

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