Closed
Description
@ianlancetaylor reports that gopls crashes in the buildir
analyzer (which is staticcheck's fork of go/ssa and buildssa) when it encounters a range-over-func statement in new code he is trying to merge the to the std slices
package. The ir
package doesn't yet support range-over-func. Nor does go/ssa (but see https://go.dev/cl/555075).
As a matter of priority, we need to disable ssa- and ir-based analyzers on packages that use range-over-func. Then we need to fix these packages before go1.23.