@ianlancetaylor requested issue #69507 to be considered for backport to the next 1.23 minor release.
@gopherbot Please open a backport to 1.23.
This appears to be a compiler bug related to the range-over-function code. The compiler is generating bad code--a variable that escapes is stack-allocated. There is no workaround (other than avoiding range-over-func).
@ianlancetaylor requested issue #69507 to be considered for backport to the next 1.23 minor release.