cmd/compile: incorrect compiler error in for range statement #73491
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Fails to compile with the kinda cryptic error:
This gets triggered when rewriting that loop to a
runtime.memclrHasPointers
call.It is trying to compute the final value for
i
aslen(a)-1
, when it should really beT(len(a)-1)
.This started happening recently and was noticed inside google. Triggered by CL 659317, not sure exactly why that CL is implicated.
The text was updated successfully, but these errors were encountered: