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
$ go run -compiler gccgo slice_delete.go
panic: runtime error: index out of range
goroutine 16 [running]:
runtime.gopanic
../../../src/libgo/go/runtime/panic.go:493
runtime_panicstring
../../../src/libgo/runtime/panic.c:34
main.main
/home/quasilyte/CODE/go/gccgo/slice_delete.go:8
runtime_main
../../../src/libgo/runtime/proc.c:606
exit status 2
Given the code slice_delete.go:
Run with 6g/GC:
Run with GCCGO:
$ go run -compiler gccgo slice_delete.go panic: runtime error: index out of range goroutine 16 [running]: runtime.gopanic ../../../src/libgo/go/runtime/panic.go:493 runtime_panicstring ../../../src/libgo/runtime/panic.c:34 main.main /home/quasilyte/CODE/go/gccgo/slice_delete.go:8 runtime_main ../../../src/libgo/runtime/proc.c:606 exit status 2
Also reproducible in this way:
Found on stack overflow: delete-element-from-slice-difference-gccgo-vs-gc.
Most likely evaluation order mismatches here.
The text was updated successfully, but these errors were encountered: