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.
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
dominikh commentedon May 7, 2024
Relevant Staticcheck issue: dominikh/go-tools#1494
gopherbot commentedon May 7, 2024
Change https://go.dev/cl/583778 mentions this issue:
gopls/internal/analysis: disable ssa/ir analyzers on range-over-func
gopls/internal/analysis: disable ssa/ir analyzers on range-over-func
go/ssa: compile range-over-func to panic
6 remaining items