Closed
Description
$ gccgo --version
gccgo (Debian 10.2.1-6) 10.2.1 20210110
package main
func main() {
var b1, b2 byte
f := func() int {
var m map[byte]int
return m[b1/b2]
}
f()
}
$ gccgo -O2 crash.go
during GIMPLE pass: ealias
In function ‘main.main..func1’:
go1: internal compiler error: Segmentation fault
0x7f5b4b547d5f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f5b4b532d09 __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.