Skip to content

cmd/compile: staticcheck still crashes with generic methods on Go 1.27.2 #82105

Open

Description

@bradfitz

We updated to Go 1.27.2 hoping that it'd permit us to use generic methods with staticcheck (since #81188 is fixed) but it still crashes in the same way.

It seems that despite the new export format, the indexes aren't populated correctly at least for our codebase.

https://go-review.googlesource.com/c/go/+/847627 has a minimal repro.

/cc @alandonovan

Activity

  1. gopherbot commented on Oct 9, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/847627 mentions this issue: cmd/compile: record method indices before encoding a named type

  2. adonovan commented on Oct 9, 2026

    @adonovan
    Member

    @gopherbot Please create a backport issue for Go 1.27: the 1.27.2 compiler's export data still causes applications to crash. Sigh.

  3. gopherbot commented on Oct 9, 2026

    @gopherbot
    Contributor

    Backport issue(s) opened: #82106 (for 1.27).

    Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.

  4. changed the title [-]staticcheck still crashes with generic methods on Go 1.27.2[/-] [+]cmd/compile: staticcheck still crashes with generic methods on Go 1.27.2[/+] on Oct 9, 2026
  5. dominikh commented on Oct 9, 2026

    @dominikh
    Member

    Any idea when Go 1.27.3 will be released? 😅

  6. added this to the Go1.28 milestone on Oct 10, 2026
  7. added
    FixPendingIssues that have a fix which has not yet been reviewed or submitted.
    on Oct 10, 2026
  8. adonovan commented on Oct 12, 2026

    @adonovan
    Member

    Any idea when Go 1.27.3 will be released? 😅

    The first Tuesday of the month. Unfortunately that's still a while away. :(

  9. cagedmantis commented on Oct 20, 2026

    @cagedmantis
    Contributor

    Is there any confirmation that the merged CL fixes the issue?

  10. adonovan commented on Oct 28, 2026

    @adonovan
    Member

    Backport CL is https://go.dev/cl/855582.

  11. gopherbot commented on Oct 28, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/855582 mentions this issue: [release-branch.go1.27] cmd/compile: record method indices before encoding a named type

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

    FixPendingIssues that have a fix which has not yet been reviewed or submitted.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions