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
The following lines cause 8g to report a fatal error:
len := int64(100)
records := make([]int, len)
println(records[len-1])
8g reports:
8g indexBug.go
indexBug.go:7: fatal error: split64 int32
If the first line (line 5) is changed to:
len := 100
the program compiles and runs fine. Note that 6g compiles both versions.
GOOS=linux
GOARCH=386
release=642f4440a578 tip
A full listing of the test program is given below:
package main
func main(){
len := int64(100)
records := make([]int, len)
println(records[len-1])
}
The text was updated successfully, but these errors were encountered:
by donald.graham@vastech.co.za:
The text was updated successfully, but these errors were encountered: