Skip to content

cmd/compile: linker panic "R_USEIFACE ... references type:.eqfunc... which is not a type or itab" with reflect.TypeFor[T]().Comparable() [1.26 backport] #82245

Open

Description

@gopherbot

@junioryono requested issue #81990 to be considered for backport to the next 1.26 minor release.

@gopherbot please consider this for backport to 1.26 and 1.27, it's a regression.

The program in this issue builds and runs with Go 1.24.0 and 1.25.0, but the linker panics with Go 1.26.0 and 1.27.0 (and with 1.26.8 and 1.27.1, as reported above), so a valid program stops building after upgrading. It also happens in test binaries. The workarounds are code changes (avoiding reflect.TypeForT.Comparable() on such types) or disabling inlining with -gcflags=-l. The fix (CL 844585) cherry-picks onto both release branches with one trivial conflict, since rewriteFixedLoad lives in ssa/rewrite.go there.

Activity

  1. added
    CherryPickCandidateUsed during the release process for point releases
    compiler/runtimeIssues related to the Go compiler and/or runtime.
    on Oct 15, 2026
  2. modified the milestones: Go1.26.10, Go1.26.11 on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CherryPickApprovedUsed during the release process for point releasescompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions