Skip to content

gccgo: should accept (_) = 0 #1757

@griesemer

Description

@griesemer
gccgo test.go 
test.go:4:7: error: cannot use _ as value

with test.go:

package main

func main() {
     (_) = 0
}

The latest spec clarifications make this assignment legal. Also, 6g and gofmt accept
this code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions