Skip to content

cmd/compile: condition in for loop body is incorrectly optimised away [1.17 backport] #53617

Closed

Description

@gopherbot

@randall77 requested issue #53600 to be considered for backport to the next 1.17 minor release.

@gopherbot please open backport issues for 1.17 and 1.18.

This is a rare bug but results in miscompilation of loops with termination conditions "<= C" for large C.

Activity

  1. added this to the Go1.17.12 milestone on Jun 29, 2022
  2. gopherbot commented on Jun 30, 2022

    @gopherbot
    ContributorAuthor

    Change https://go.dev/cl/415415 mentions this issue: [release-branch.go1.17] cmd/compile: fix prove pass when upper condition is <= maxint

  3. toothrot commented on Jul 6, 2022

    @toothrot
    Contributor

    Approved. This is a serious issue with no workaround.

  4. modified the milestones: Go1.17.12, Go1.17.13 on Jul 12, 2022
  5. gopherbot commented on Jul 25, 2022

    @gopherbot
    ContributorAuthor

    Closed by merging 489c148 to release-branch.go1.17.

  6. added a commit that references this issue on Jul 25, 2022
    489c148
  7. locked and limited conversation to collaborators on Jul 25, 2023
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions