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
The package below statically converts the constant 1<<32 to a string (which should be "\uFFFD", because it's outside of the valid Unicode range). It then checks that the length matches the expected length (which is 3).
cmd/compile correctly accepts this package, but go/types and gccgo do not. go/types used to handle this correctly. I believe this is a regression introduced by CL 220844 (6052838).
package p
const _ = -uint(len(string(1<<32)) - len("\uFFFD"))