Skip to content

cmd/compile: a[1.0 << s] should be accepted #21693

Closed

Description

@griesemer

Per the fix for #14844, https://play.golang.org/p/fWbHLgkJ7Z should now be accepted by the compiler.

Activity

  1. added this to the Go1.10 milestone on Aug 30, 2017
  2. self-assigned this
    on Aug 30, 2017
  3. gopherbot commented on Aug 31, 2017

    @gopherbot
    Contributor

    Change https://golang.org/cl/60230 mentions this issue: spec: clarify context type for certain non-constant shifts

  4. bradfitz commented on Nov 29, 2017

    @bradfitz
    Contributor

    Ping Robert.

    I assume this is a release-blocker, given the spec update?

  5. griesemer commented on Nov 29, 2017

    @griesemer
    ContributorAuthor

    Will look into this tomorrow. It's not spec compliant anymore but I don't think it's a release blocker - after all there's a trivial work around (just write a[1 << s] instead). Leaving as is for now in case there's an easy fix.

  6. odeke-em commented on Nov 29, 2017

    @odeke-em
    Member

    I had started working on this at some ungodly hours of Saturday morning but I couldn't get a proper cast/conversion to int in

    if t != nil && !t.IsInteger() {

    so I'll defer to you @griesemer :)

  7. modified the milestones: Go1.10, Go1.11 on Nov 29, 2017
  8. gopherbot commented on Nov 30, 2017

    @gopherbot
    Contributor

    Change https://golang.org/cl/81277 mentions this issue: cmd/compile: permit indices of certain non-constant shifts

  9. locked and limited conversation to collaborators on Dec 1, 2018
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

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions