https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61255
Bug ID: 61255 Summary: gccgo: spurious "error: argument 2 has incompatible type" [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() { append([]byte{}, 0)[0]++ } $ go build -compiler=gccgo src.go src.go:4:2: error: argument 2 has incompatible type append([]byte{}, 0)[0]++ gc compiles successfully.