Skip to content

cmd/compile: type..eq function not generated #24747

Closed
@dotaheor

Description

@dotaheor

What version of Go are you using (go version)?

go version go1.10.1 linux/amd64

Does this issue reproduce with the latest release?

yes

What did you do?

package main

func main() {
	type T struct {
		a interface{}
		b int
	}
	
	var t T
	var z = [3]T{1: t}
	_ = z == z
}

What did you expect to see?

no errors

What did you see instead?

weird outputs, not like normal error messages.

type..eq.[3]main.T·1: call to external function
main.main: relocation target type..eq.[3]main.T·1 not defined
main.main: undefined: "type..eq.[3]main.T·1"

btw, gccgo is ok to compile this program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions