Skip to content

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

Closed
@dvyukov

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions