$ gccgo --version
gccgo (Debian 13.2.0-4) 13.2.0
package main
func f(s string) int {
return len([]byte(s))
}
func main() {
for _, e := range make([]int, f("abc")) {
println(e)
}
}
$ gccgo crash.go
go1: error: esc already decorated call f("abc")
在gc上编译并运行正常。
1条答案
按热度按时间mspsb9vt1#
FYI @cherrymui