Skip to content

gccgo: does not recognize unused import #12326

Closed
@dvyukov

Description

@dvyukov

gccgo successfully compiles the following program:

package a
import  _ "fmt"
import "fmt"

Both gc and gotype say:

"fmt" imported but not used

They seem to be right.
gofrontend is on commit 81810917af7ba19e1f9f8efc8b1989f7d6419d30

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions