$ cat x.go
package main
type I interface{ m() interface{ I } }
var _ = I(nil).m
func main() {}
$ gccgo -o x x.go
gccgo: internal compiler error: Segmentation fault signal terminated program go1
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
/cc @ianlancetaylor@griesemer
2条答案
按热度按时间flvtvl501#
匿名递归接口不受支持。
kdfy810k2#
实际上,重新打开ICE以将其转换为适当的错误消息。