golang/go

gccgo: bogus index out of bounds

dvyukov opened this issue · 2 comments

gccgo rejects to compile the following program:

package a
var a = ""[:]
go.go:2:11: error: string index out of bounds

gcc version 6.0.0 20150702 (experimental) (GCC)

CL https://golang.org/cl/13030 mentions this issue.