https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61254
Bug ID: 61254
Summary: gccgo: spurious "error: slice end must be integer"
[GoSmith]
Product: gcc
Version: 4.10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
Assignee: ian at airs dot com
Reporter: dvyukov at google dot com
gcc version 4.10.0 20140516 (experimental) (GCC)
The program is:
package main
func main() {
((([][]int{})[:])[0])[0]++
}
$ go build -compiler=gccgo /tmp/index.go
src.go:4:15: error: slice end must be integer
((([][]int{})[:])[0])[0]++
gc compiles successfully.