Skip to content

cmd/compile: incorrect loop trip count [1.26 backport] #78375

Closed

Description

@gopherbot

@Jorropo requested issue #78303 to be considered for backport to the next 1.26 minor release.

@gopherbot please open backport issues for 1.25 and 1.26

This is a misscompilation that yields different runtime behavior than the go spec requires.

Activity

  1. added
    CherryPickCandidateUsed during the release process for point releases
    compiler/runtimeIssues related to the Go compiler and/or runtime.
    on Mar 26, 2026
  2. added this to the Go1.26.2 milestone on Mar 26, 2026
  3. gopherbot commented on Mar 27, 2026

    @gopherbot
    ContributorAuthor

    Change https://go.dev/cl/760041 mentions this issue: cmd/compile: do not invert loops that would overflow or underflow

  4. gopherbot commented on Mar 27, 2026

    @gopherbot
    Author
  5. modified the milestones: Go1.26.2, Go1.26.3 on Apr 7, 2026
  6. gopherbot commented on Apr 14, 2026

    @gopherbot
    ContributorAuthor

    Change https://go.dev/cl/766982 mentions this issue: [release-branch.go1.26] fix incorrect loop trip counts

  7. added a commit that references this issue on Apr 23, 2026
    f4e425d
  8. gopherbot commented on Apr 23, 2026

    @gopherbot
    ContributorAuthor

    Closed by merging CL 766982 (commit f4e425d) to release-branch.go1.26.

  9. added a commit that references this issue on Jul 22, 2026
    b1e8361
  10. added a commit that references this issue on Sep 4, 2026
    c46f003
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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions