You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: a[1.0 << s] should be accepted #21693
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.
Activity
gopherbot commentedon Aug 31, 2017
Change https://golang.org/cl/60230 mentions this issue:
spec: clarify context type for certain non-constant shiftsspec: clarify context type for certain non-constant shifts
bradfitz commentedon Nov 29, 2017
Ping Robert.
I assume this is a release-blocker, given the spec update?
griesemer commentedon Nov 29, 2017
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.odeke-em commentedon Nov 29, 2017
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
go/src/cmd/compile/internal/gc/const.go
Line 262 in 992ce90
so I'll defer to you @griesemer :)
gopherbot commentedon Nov 30, 2017
Change https://golang.org/cl/81277 mentions this issue:
cmd/compile: permit indices of certain non-constant shifts